[How To] Solution for sudo: must be setuid root problem


I had encountered this problem on sudo/gksu not working few months earlier.

Whenever I had to open an application with gksu it did not open at all !  I was wondering what did i do. I dint know whether  i meddled with something or is it any other configuration that created the problem.

If I type sudo in terminal i get “sudo: must be setuid root”

This is how I went about fixing it:-

  1. Open terminal and enter as root i.e. type ’su’ and then the root password (Please be careful while being the root). Alternatively, you can also use ur OS’s live CD to mount the root partition (the partition where you have installed your OS)
  2. Next, type chmod 4755 /usr/bin/sudo If the command perfectly happens then as far I am able to tell sudo and gksu should work correctly.

If anyone of you are still having problems regarding this issue please post it in comments

If you enjoyed this post, make sure you subscribe to my RSS feed!
Possibly Related posts:
Though it's been a while since Gutsy was released, I
Debian and other debian-based distros like Ubuntu have, by default,
Admin's Note: This solution was emailed to me by Bharath,
This is the problem that affected me the most in
Hello people, This is Bharath Ram. I wanted to share with

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

4 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>