sudo: effective uid is not 0, is sudo installed setuid root
May 11, 2020 at 12:35 pm Leave a comment
When messing with up acl’s you may come across situation where the sudo will be stopped from functioning. Especially , when you typed sudo you may notice the error “sudo: effective uid is not 0, is sudo installed setuid root”.
To diagnose the issue
Step1:
Check the /etc/sudoers file , whether you have added the group or the user name in the sudoers file for e.g: user abc
abc ALL=(ALL) NOPASSWD: ALL
Step2: if the output of the step 1 is correct check the permission on sudo as below (Output of a working sudo)
# ls -l /usr/bin/sudo
—s–x–x 2 root root 190904 Mar 4 18:21 /usr/bin/sudo
# stat /usr/bin/sudo
…
Access: (4111/—s–x–x) Uid: ( 0/ root) Gid: ( 0/ root)
In case , if you find the output of Step 2 is not matching with yours you can reset the permission to default
# rpm –setperms sudo.
Trackback this post | Subscribe to the comments via RSS Feed