[Linux-disciples] sudoers/su mistake
Adam Rosi-Kessel
adam at rosi-kessel.org
Tue Oct 18 10:34:07 EDT 2005
Can you log out and just login as root from the login prompt?
Otherwise, you might be screwed. Maybe someone else has an account on the
machine that is already in wheel?
Lesson is to be exceedingly cautious when touching this kind of stuff on a
production machine.
Stephen R Laniel wrote:
> 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051018/919566e9/signature.pgp
More information about the Linux-disciples
mailing list