Results 1 to 1 of 1
Does anybody use pam_winbind with pam_mount to allow login of windows users with an automatically mounted share?
My problem is that the first time a user logs in, it creates ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-27-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 1
pam_winbind and pam_mount
Does anybody use pam_winbind with pam_mount to allow login of windows users with an automatically mounted share?
My problem is that the first time a user logs in, it creates their home dir, then tries to perform the mount and fails with what seem to be permission errors.
The mount works perfectly on the second login and onwards.
Here is what happens the first login:
Code:[root@uks ~]# rm /home/uks_user/ -rf [root@uks ~]# su - uks_user Creating directory '/home/uks_user'. Creating directory '/home/uks_user/.mozilla'. Creating directory '/home/uks_user/.mozilla/plugins'. Creating directory '/home/uks_user/.mozilla/extensions'. reenter password for pam_mount: pam_mount(mount.c:216): could not chown /home/uks_user/windowscommon to uks_user pam_mount(mount.c:256): tried to create /home/uks_user/windowscommon but failed pam_mount(pam_mount.c:537): mount of Common failed [uks_user@uks ~]$
Here is my /etc/pam.d/system-auth:
Seems to be some kind of ordering problem in the system-auth file, but I just can't work it out. Any ideas?Code:#%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required pam_env.so auth sufficient pam_unix.so nullok try_first_pass auth requisite pam_succeed_if.so uid >= 500 quiet auth required pam_winbind.so use_first_pass auth optional pam_mount.so auth required pam_deny.so account required pam_unix.so broken_shadow account sufficient pam_succeed_if.so uid < 500 quiet account [default=bad success=ok user_unknown=ignore] pam_winbind.so account required pam_permit.so password requisite pam_cracklib.so try_first_pass retry=3 password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok password sufficient pam_winbind.so use_authtok password required pam_deny.so session optional pam_keyinit.so revoke session required pam_limits.so session optional pam_mkhomedir.so use_first_pass session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid session required pam_unix.so session optional pam_mount.so


Reply With Quote
