login asks for password twice before authenticating
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
login asks for password twice before authenticating
I have a peculiar problem. I have been messing with samba configuration (authenticating against an LDAP server - yikes) - and now whenever i log in via the x interface OR when i try to authenticate as su after logging in via ssh2, i am asked for my password twice. anybody have any ideas? this does NOT happen when logging in via ssh, btw - only when i'm already logged in and trying to use su powers.
If you su as a user, your then logged in as that user.. so if your trying to access a Samba share as that user, that's why its asking for authentication once again, as that user.
Whenever you su, your logging in as that user, so you have to authenticate. The only user that it won't prompt a password for is when your root and su to another user, etc.
when i log in to x (not samba), it asks for the username once, and the password twice. it only logs in after the password has been put in twice. it only looks at the second password for authentication, as i can put anything in for the first password and not receive an error message.
when i log in via ssh, it asks for the username and password once (after authenticating against my key)
however, when i'm logged in a ssh shell, and try to su, it asks for the su password twice. again, it only looks at the second password for authentication.
on any other system (even those running samba), when i log in to x or su after i'm in ssh, it only asks for the password once.
How is your PAM setup?
Depending on your distro, it will be located in /etc/pam.d/auth or /etc/pam.d/system-auth
If you are using LDAP authetication, you should only have sufficient across from pam_unix.so and pam_ldap.so
You will probably find that you have required beside pam_unix.so
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.