sudoers file problem (I really messed it up)

Paul Sladen sounder at paul.sladen.org
Wed Apr 27 03:56:42 UTC 2005


On Tue, 26 Apr 2005, sara vasquez wrote:

Hello sara,

> so I change som stuff in my /etc/sudoers and did not make a backup

Reboot and select 'Recovery Mode' from the grub boot menu.  This will drop
you at a root prompt.  You can then do:

  # EDITOR=nano visudo

'visudo' is a special wrapper than performs locking and syntax checking on
the 'sudoers' file before letting you save it.

If you ever need to edit 'sudoers' directly again, then you should use:

  $ sudo visudo

The editor used is the one set with the environment variable 'EDITOR', so
you can override this (like at the top), with:

  $ EDITOR=gedit sudo visudo

Hope that's useful and you get your machine back.  It's also useful to know
that you can allow other users full administrator/sudo privileges with:

  $ sudo adduser sara admin

where 'sara' is the user in question.

	-Paul
-- 
I didn't know it snowed here!  Sydney, AU





More information about the ubuntu-users mailing list