sudoers file problem (I really messed it up)

Darryl Clarke smartssa at gmail.com
Wed Apr 27 01:47:07 UTC 2005


On 4/26/05, Erik Bågfors <zindar at gmail.com> wrote:
> I did the same thing.
> 
> simplest fix...
> 
> In the grub prompt, go edit and then add "init=/bin/bash" to the boot command
> then boot
> you will now be root on that machine,
> do "mount -o rw,remount /"
> then edit sudoers
> sync; reboot
> 
> You should be set.

No need to do all that.  Just select your kernel with "(recovery
mode)" from the grub list and it will put you at a root prompt.

Then you can go and edit /etc/sudoers

-- 
~ Darryl  ~ smartssa at gmail.com
http://smartssa.com / http://darrylclarke.com




More information about the ubuntu-users mailing list