sudoers file problem (I really messed it up) (Solved thanks to all)
sara vasquez
sarava at verizon.net
Thu Apr 28 02:43:10 UTC 2005
Paul Sladen wrote:
>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
>
>
Fixed it Thanks for all of your help
More information about the ubuntu-users
mailing list