broken sudo?!?
Stephen R Laniel
steve at laniels.org
Tue Jul 12 11:44:17 UTC 2005
On Tue, Jul 12, 2005 at 01:36:52PM +0200, Henning Kilset Pedersen wrote:
> Somehow I've managed to break the sudo functionality in Hoary. I can't
> do sudo anything. And I can't run for instance Ubuntu Update from Gnome
> since it depends on sudo.
>
> The /etc/sudoers file is (seemingly) intact and untouched. I've run
> visudo and just resaved the file, but nothing happens.
Wait a second: you can't run visudo and save the
/etc/sudoers file unless you run it either
a) as root or
b) under sudo.
So do you have a root account? For reasons discussed
literally ad nauseum on here, you should avoid having a root
account. But I guess it does come in handy during those
(hopefully rare) times when sudo is borked.
But in any case, it looks like you can see the contents of
/etc/sudoers. Is your own username in there? Does it say
# Added by Ubuntu installer
yourUsername ALL=(ALL) ALL
? That's a start.
What are the permissions on /etc/sudoers? It should be
-r--r----- 1 root root 376 2004-12-16 16:40 /etc/sudoers
or less.
Finally (but really should have been my first question):
what does it say when you try to run "sudo [commandName]"?
--
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050712/42780c16/attachment.sig>
More information about the ubuntu-users
mailing list