Su:incorrect Password

Source: Internet
Author: User

When switching to the root user using the SU (SU-) command in a state with normal user login: su:incorrect password, but you can log in to the operating system directly using the root user and password.


may be related to the properties of Su, the execution file.

The permissions should be "-rwsr-xr-x"

The properties of SU in your own system are "-rwxr-xr-x"

That is, Su is executable to the user, but still the user's permissions.

Finally found the reason. When performing su with a normal user, only on behalf of the user, although executed, but access to other resources, such as password files, may not have permission.

Log in to the operating system directly with the root user and modify the/bin/su file properties

chmod u+s/bin/su modified to "-rwsr-xr-x", then su switch, all OK.

PS: Quality s bit, the executor does not represent the caller, but represents the owner and has owner permissions. The SU owner is root, so the normal user performs su with root privileges, access to the password and other protection resources.

Su:incorrect Password

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: 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.