PDA

View Full Version : Sudo problem


paul_c
September 26th, 2005, 03:59 PM
Hi there
I am a linux n00b. I've been playing around trying to get certain things to work with Ubuntu, but I think I messed something up with the sudo command. Whenever I try to use it, it comes back with this message:

sudo: /etc/sudoers is owned by uid 1000, should be 0

Is there any way to fix this and revert it back to normal?

Mustard
September 26th, 2005, 05:45 PM
This is what I would do, which is to say, it might work. It might not work either. :)

Can you start up a root terminal?

Try one of thes 'Rescue methods' from the Unofficial Ubuntu guide to enable yourself to log in as root.

http://www.ubuntuguide.org/#rescuemode

Once you are logged in as root, I would try

cd /etc
chown root sudoers


I'm assuming this will give the ownership of the sudoers file back to root, which is what it is on my system. From there I imagine you just restart Ubuntu in normal mode and see if it is still giviing you the error.

paul_c
September 26th, 2005, 08:53 PM
excellent! works perfectly now, thanks so much