Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi,
i am having a problem with linux login.
The old administrator did something with pam files i think. And now we have to enter user password twice to make it log in.
That is making automated scripts etc to go wrong.
Look at the pam configuration and see what modules are being used other than pam_unix.so in the auth stack. Particularly, anything like pam_ssh, pam_mount, etc. If so, they should usually be called with the try_first_pass option. Also, do the prompts look the same?
The authentication screen from PuTTY looks like this:
Code:
Using username "root".
Using keyboard-interactive authentication.
Password:
Using keyboard-interactive authentication.
Password:
Last login: Wed Oct 8 19:24:04 2008 from 10.1.4.55
hostname_here:~#
What distribution are you on? On Debian-based systems, we have /etc/pam.d that contains the pam configuration files which tell PAM which modules to load and what options to pass to those modules.
#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
#auth sufficient pam_radius_auth
auth sufficient pam_winbind.so
auth required pam_unix.so nullok_secure
In console it asks twice too... :/
I just noticed that is not relevant what you enter for password for the first time. The second prompt that is checked
Are you authenticating against a domain? The first prompt is pam_winbind asking for the domain, and the 2nd is pam_unix. My guess is that there's no domain in use, or else a correct first password would 'suffice' via pam_winbind. If there's no domain in use, you can comment out the pam_winbind.so line.
It should work. I don't *THINK* pam.d/common-auth is used in the mail stack, but it depends on what mailserver you're using. Look and see if there's a pam.d/<mailserver> file with a separate configuration and make sure it doesn't have "@include common-auth" in it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.