Tuesday, July 12, 2011

Sudo: must be setuid root

Here is a solution to a common error when using sudo

Open terminal (CTRL+ALT+T) and use below commands

loginuser> sudo -l
sudo: must be setuid root
loginuser>

To fix the error above chown and chmod the sudo file as root, in my case the file is in /usr/bin

root>chown root:root /usr/bin/sudo
root>chmod 4755 /usr/bin/sudo
root>chmod 0400 /etc/sudoers
reboot system

That should fix the error and you should be able to sudo without a problem.

Note: You must be login with "root" user.

3 comments:

Michelle C. said...

Thanks for these guides and tips for a website developer. This is really of great help to me.

Anonymous said...

The above code was useful.Thanks, I would suggest you to change the background.Its not making the page readable.

Ravi said...

Thanks for feedback.

I think black and white is the perfect combination for reading.

May you please suggest your options?

Post a Comment