Passwd: User not known to the underlying authentication -- to solve

Source: Internet
Author: User
Tags gopher


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.