Sunday, 22 June 2008

sudo: must be setuid root solved in Ubuntu

Go to recovery console (reboot, and chose recovery console in case you didn't catch on to how to do that),

fire following commands .


Code:
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
and reboot the machine by

Code:
shutdown -r now


In case if you are getting a "Sudo: /etc/sudoers is mode 0777, should be 0440" message on startup then

go to recovery console and fire following command

Code:
chmod 0440 /etc/sudoers

-Mihir Patel

8 comments:

  1. Thanks :):):)

    ReplyDelete
  2. How do you get to recovery console I'm Running Ubuntu Server 10

    ReplyDelete
  3. did not have this problem with gutsy. Works fine now, :)

    ReplyDelete
  4. Did not have this problem with gutsy. Works fine now. :)

    ReplyDelete
  5. It says me Permission denied.
    for the both the above comments.

    ReplyDelete
  6. ishita,

    just use sudo in front of the command, in linux when you user this it means "Super user do" in short "do what i tell you i am administrator".

    ReplyDelete
  7. when i type sudo i get this problem so how can i get the permission to execute this command

    ReplyDelete