Centrify and pam_mount enter password twice
08-09-2010 05:13 PM - last edited 08-10-2010 11:16 AM
I'm trying to use pam_mount to mount some share drives on login. This works but results in having to enter the password twice during login. It asks once for the password than again for the pam password. Is there a solution to this?
I'm running Ubuntu 10.04. I tried moving the pam_mount line in common-auth to the top but this did not solve the issue.
Solved! Go to Solution.
08-11-2010 02:31 PM
We haven't forgotten about you; we were setting up the sytem to reproduce the behavior to find a solution for you. We believe the below suggestion should help you based on our investigation:
1) Open /etc/pam.d/common-auth file
2) Check if " auth optional pam_mount.so" is the first line and "auth sufficient pam_centrifydc.so" second line. If "yes" then change the second line to:
auth sufficient pam_centrifydc.so try_first_pass
3) Test the login, you should now get prompted only once.
If the above suggestion did not help, post the contents of your /etc/pam.d/common-auth file into the post.
08-13-2010 03:32 PM
Ok that solved it.
I see Centrify is now in the Ubuntu partner repo. Ideally centrify should be aware of pam_mount being installed and configure itself properly right?
08-16-2010 12:17 PM
Absolutely David. We shall look into ways to eliminate this extra step as manual edition of pam configuration files is typically cumbersome.
Thanks for your feedback so far on our express product.
08-20-2010 01:40 AM
I followed the solution and indeed, i've to enter my password one time only. Nevertheless, the only one password i enter is for "pam_mount" and not for my user session. Each time i use a sudo, the command requires a pam_mount password and not an user password. It works but ...
Is it a way to force the computer to display "enter user password" and not "enter pam_mount password" ?
Thanks in advance.