passwd: User not known to the underlying authentication module
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
passwd: User not known to the underlying authentication module
Hi
I can't change my password in Mandrake 9.2, for any user. Actually, neither root nor the other user has a passowrd at all, I can do su root without giving a password! It gives the following error if I try to change the passwd:
[root@localhost /]# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: User not known to the underlying authentication module
Post the following (where applicable)...
- Relavent /var/log/messages and /var/log/secure.log (or equivalent) entries.
- /etc/pam.d/passwd and /etc/pam.d/su contents.
- Result of pwck and grpck.
#%PAM-1.0
auth sufficient /lib/security/pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient /lib/security/pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required /lib/security/pam_wheel.so use_uid
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session optional /lib/security/pam_xauth.so
Output of pwck [run as root]:
user adm: directory /var/adm does not exist
user news: directory /var/spool/news does not exist
user uucp: directory /var/spool/uucp does not exist
pwck: no changes
Output of pwck [run as non-root]:
pwck: cannot lock file /etc/passwd
Output of grpck [as root]:
NO OUTPUT, JUST GOES TO NEW LINE, NO ERROR
Output of grpck [non-root]:
grpck: cannot lock file /etc/group
For passwd, is the passwd binary's suid bit set? Then try editing /etc/pam.d/passwd (make a backup first) and replace all the lines with the following...
#%PAM-1.0
auth required pam_deny.so
password sufficient pam_unix.so md5 shadow
password required pam_deny.so
account required pam_deny.so
session required pam_deny.so
If making the above changes do work, then the problem should be in the /etc/pam.d/system-auth config file.
Also, are those the immediate log entries after running passwd?
For the su problem, did you try to su from a user shell or were you already root? If you are already in a root shell, su will not ask for a password.
Is your /etc/shadow file either missing or empty so the passwords are located in the /etc/passwd file ?
If true, use "pwconv" to create a shadow file.
The "passwd" command should work then.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.