Sudo:effective uid is isn't 0, is sudo installed setuid root

Source: Internet
Author: User

The sudo command is required when a normal user needs to use root privileges temporarily, but it is necessary to use ROOT to execute the/usr/bin/sudo binary when executing the sudo command.

If an error occurs sudo:effective UID is not 0, is sudo installed setuid root

Prove that the/usr/bin/sudo file does not have the S permission (the user temporarily has permissions to the file owner when executing the file.) )

Workaround:

chmod U+s/usr/bin/sudo

After adding permissions to view the file Ll/usr/bin/sudo will see:

---s--x--x 1 root root 123832 Jan 2 18:57/usr/bin/sudo

This makes it possible to use the


Sudo:effective uid is isn't 0, is sudo installed setuid root

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.