Bug 563320
| Summary: | pam_mkhomedir.so doesn't implement umask on the created home folder | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Corey Crawford <mppz3wzs7k> |
| Component: | pam | Assignee: | Tomas Mraz <tmraz> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | tmraz |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-02-15 14:47:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Corey Crawford
2010-02-09 20:14:31 UTC
Unfortunately I cannot reproduce the problem here. What application are you using to log in? Note that the option is 'umask' and not 'uname' as in your 1. Do you see something suspicious in /var/log/secure? Logging in from GDM. My mistake. I'm actually using uname=0077. session optional pam_mkhomedir.so uname=0077 Nothing suspicious, just (for this one login): Feb 12 12:38:27 lnxfedtest01t pam: gdm-password[1933[: pam_unix(gdm-password:session): session opened for user crawford by (uid=0) Okay, not sure what all is pertinent, so here's everything I can think of. This is a Fedora 12 VM on a VMWare ESXi cluster. It's using NIS from Windows Active Directory to get user names, and authenticating over Kerberos (also from Windows AD). On login, it uses AutoFS to mount an NFS share at /student/$USER. In /etc/gdm/PreSession/Default, the second line creates a symlink from /student/$USER to /home/$USER/sDrive (so /home/$USER must already be created at this point). Are you really using 'uname' instead of 'umask'? Then that is the problem - the parameter is umask, not uname! Okay. I misread your first reply. My apologies. I have now tried both "uname" and "umask" and neither has any effect. The problem is that I cannot reproduce the problem here, that is the pam_mkhomedir works fine even with non-default umask set and also code review did not reveal anything suspicious. Okay. Again I have made some mistake. Removing the pam_mkhomedir.so line completely from that file has no effect. Meaning something other than pam.d/system-auth is creating the home folder, and I've been wasting your time. My apologies. I'll keep looking. You're probably looking for password-auth. You're right! Adding umask=0077 to password-auth's pam_mkhomedir.so line does cause new home folders to be created 700. Thank you so much. |