[Linux-disciples] sudoers/su mistake

Stephen R Laniel steve at laniels.org
Tue Oct 18 10:22:28 EDT 2005


This is a FreeBSD question, but I assume it carries over to
Linux without much change.

I had configured /etc/sudoers so that the group %admin had
full root privileges, until someone mentioned that the group
'wheel' is the default FreeBSD way of doing what I wanted.
So I went into visudo, changed '%admin' to '%wheel' ... and
thereby locked myself out of sudo, because I was a member of
%admin and not of %wheel. So I tried to log in as root to
fix the problem, but I got

(10:11) slaniel at platform:~$ su root
su: Sorry

Same thing happens if I do just 'su'.

I can't reboot the machine, because it's a high-load
production machine. How do I get back into /etc/sudoers?

-- 
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: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051018/0aef0ff4/attachment.pgp


More information about the Linux-disciples mailing list