I have troubles forcing pam_mkhomedir to create the user's home directory before pam_mount tries to mount a network drive to it. The order of modules in my "ssh" pam config is: auth required pam_nologin.so auth required pam_env.so auth sufficient pam_unix.so auth required pam_ldap.so use_first_pass auth requisite pam_mount.so use_first_pass account sufficient pam_unix.so account required pam_ldap.so session required pam_mkhomedir.so umask=077 session sufficient pam_unix.so session required pam_ldap.so session requisite pam_mount.so session required pam_limits.so The problem is it first tries to mount the network drive using pam_mount.so (which fails because of non-existing mountpoint) and then the pam_mkhomedir creates the directory. So this try to authenticate fails. Next time the user tries to log in, the directory is available and he/she gets through. But I, of course, need it to success on first try. Could someone help me, please? Thank you. -- Lukas Kubin <kubin@xxxxxxxxxx> Network Administrator Information Centre School of Business Administration in Karvina Silesian University in Opava
Attachment:
signature.asc
Description: PGP signature