Passwd: User not known to the underlying authentication -- to solve
During the exercise set by the instructor, the following error occurs: passwd: User not known to the underlying authentication. You can find out pwck after going online. pwconv can help me solve this problem. To remember this method, record it and share it with you.
First of all, I have manually added an account multiple times, and the information in/etc/passwd and/etc/shadow is messy, some information cannot be deleted manually, which leads to an error when I change the password. The following describes how to solve this problem.
Next, we should first familiarize ourselves with the commands in two linux systems: one is the pwck command and the other is the pwconv command:
Pwck verifies the integrity of system authentication information and checks whether the format of all entries in/etc/passwd and/etc/shadow is correct and whether the information of each field is valid. The system will prompt you to delete incorrectly formatted entries and other unrecoverable errors. pwconv will create/etc/shadow Based on/etc/passwd, in this way, the user's account information can be effectively managed. Then execute the command in sequence.
[Root @ taumy ~] #Sudo/usr/sbin/pwck
User adm: directory/var/adm does not exist
User news: the directory/etc/news does not exist.
User uucp: directory/var/spool/uucp does not exist
User gopher: directory/var/gopher does not exist
User ftp: directory/var/ftp does not exist
User pcap: directory/var/arpwatch does not exist
User avahi-autoipd: directory/var/lib/avahi-autoipd does not exist
User sabayon: directory/home/sabayon does not exist
Invalid password file item
Delete line ''? Yes
User mysql: directory/home/mysql does not exist
No matching password file entry in/etc/passwd
Delete line 'u1 :!! : 15970: 0: 99999: 7 :::'? Yes
Pwck: the file has been updated.
[Root @ taumy ~] #
Sudo/usr/sbin/pwconv
[Root @ taumy ~] #Passwd nomas
Changing password for user nomas.
New UNIX password:
Bad password: it is too simplistic/systematic
Retype new UNIX password:
Passwd: all authentication tokens updated successfully
You can change the password in another way to get the desired result:
[Root @ taumy ~] #Echo "abc123" | passwd -- stdin nomas
Changing password for user nomas.
Passwd: all authentication tokens updated successfully.
This article from the "yunye" blog, please be sure to keep this source http://taumycheung.blog.51cto.com/7778179/1302941