Su root, incorrect password, the password is correct

Source: Internet
Author: User

CentOS system, when using SU prompts: incorrect password, but the password is indeed correct.

Looked for a long time, using the following methods:

A. View
/ETC/PAM.D/SU file See if the following sentence is set to work.
Auth Required pam_whell.so Use_uid

Was looking at
/etc/login.defs file is not the following sentence
Su_wheel_only Yes

If it is, comment out the.

Two. Look at the/bin/su file's property is ' rwsr-xr-x ', if not please mend.

chmod u+s/bin/su

if U-any other user can, a particular user does not, the solution is:

Note the UID and GID of the user and the associated group, delete, rebuild, give the same GID and group ID

Note: No, delete the user, recreate, add 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.