sudo: “effective uid is not 0, is sudo installed setuid root?”

 

ERROReffective uid is not 0, is sudo installed setuid root

 

If you see this error that means your sudo binary doesn’t have the setuid flag, as it correctly guessed.

# stat /usr/bin/sudo

...

Access: (4111/---s--x--x) Uid: ( 0/ root) Gid: ( 0/ root)

...

 

Resolution :

run this command as ROOT:

#chmod u+s /usr/bin/sudo

 

NOTE: some third party application such as PowerBroker  change the sudo permission deliberately,be aware by set this permission back to default you will avoid the purpose of using the third party application.

Tags:, , ,

Add a Comment

Your email address will not be published. Required fields are marked *