Linux: password is not properly logged in, log prompt could not get shadow information for user

Source: Internet
Author: User

Today, when playing Centos7 again, try to modify the port under SSH. Because SELinux is turned on by default, the SSHD service does not start properly if you do not modify the file configuration to modify the port.

However, when I modify the port 22 will still not be able to log in normally. This time to check the login log prompt as above: (because before the successful landing, fortunately there is no window closed)

Finally found is/etc/ssh/sshd_config below the Usepam no this option of the "pot" ~ inexplicably this has become no

After you modify it to Yes. Restart Service Normal Login

Resources:

https://www.itechlounge.net/2013/10/linux-could-not-get-shadow-information-for-user/

Linux: password is not properly logged in, log prompt could not get shadow information for user

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.