ERROR : effective 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)
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.