Su root, incorrect password, the password is correct

Source: Internet
Author: User

In centos, the system prompts "Incorrect password" when using Su, but the password is correct.

After searching for a long time, use the following method:

 

1. View
In the/etc/PAM. d/su file, check whether the following sentence is valid.
Auth required pam_whell.so use_uid

Check out
Does the/etc/login. defs file have the following sentence?
Su_wheel_only Yes

If yes, comment out.

2. Check whether the attributes of the/bin/su file are 'rwsr-XR-x'. If not, change it.

Chmod U + S/bin/su

If u-any other user can, a specific user cannot, the solution is:

Write down the UID and gid of the user and related groups, delete, recreate, and assign the same GID and group ID

Note: If the user cannot be deleted, create a new user and add a group.

 

 

 

Method Source: http://topic.csdn.net/u/20100115/10/c57ea30c-f38b-42ba-8aa9-23e7c92efb35.html

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.