[xubuntu-users] sudoers recover

Ярослав Райченко gruz222 at rambler.ru
Fri Jan 29 07:24:36 UTC 2010


* Will Walthall <ghthor at gmail.com> [Mon, 25 Jan 2010 04:08:51 -0500]:
> I'd boot up with a live cd,
>
> mount your partition containing the messed up sudoers file.
> replace sdx with you partition.
>
> sudo mount /dev/sdx /mnt
>
> sudo mousepad /mnt/etc/sudoers
>
> heres the default
>
> -------------------------
>
> # /etc/sudoers
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # See the man page for details on how to write a sudoers file.
> #
>
> Defaults env_reset
>
> # Host alias specification
>
> # User alias specification
>
> # Cmnd alias specification
>
> # User privilege specification
> root ALL=(ALL) ALL
>
> # Uncomment to allow members of group sudo to not need a password
> # (Note that later entries override this, so you might need to move
> # it further down)
> # %sudo ALL=NOPASSWD: ALL
>
> # Members of the admin group may gain root privileges
> %admin ALL=(ALL) ALL
>
>
> ---------EOF-----------------

ThankYou. I did it like this way.
Alex

--
Ярослав Райченко.

--
Скачай новую ICQ 7.0 http://icq.rambler.ru/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20100129/1ba71fc2/attachment.html>


More information about the xubuntu-users mailing list