<html>
<head>
<title>Re: [xubuntu-users] sudoers recover</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<p>* Will Walthall <<a href="mailto:ghthor@gmail.com">ghthor@gmail.com</a>> [Mon, 25 Jan 2010 04:08:51 -0500]:</p><blockquote><p>> I'd boot up with a live cd,<br>><br>> mount your partition containing the messed up sudoers file.<br>> replace sdx with you partition.<br>><br>> sudo mount /dev/sdx /mnt<br>><br>> sudo mousepad /mnt/etc/sudoers<br>><br>> heres the default<br>><br>> -------------------------<br>><br>> # /etc/sudoers<br>> #<br>> # This file MUST be edited with the 'visudo' command as root.<br>> #<br>> # See the man page for details on how to write a sudoers file.<br>> #<br>><br>> Defaults env_reset<br>><br>> # Host alias specification<br>><br>> # User alias specification<br>><br>> # Cmnd alias specification<br>><br>> # User privilege specification<br>> root ALL=(ALL) ALL<br>><br>> # Uncomment to allow members of group sudo to not need a password<br>> #
(Note that later entries override this, so you might need to move<br>> # it further down)<br>> # %sudo ALL=NOPASSWD: ALL<br>><br>> # Members of the admin group may gain root privileges<br>> %admin ALL=(ALL) ALL<br>><br>><br>> ---------EOF-----------------</p></blockquote><p> <br>ThankYou. I did it like this way.<br>Alex<br> <br> <br>--<br>Ярослав Райченко.<br> <br>--<br>Скачай новую ICQ 7.0 <a href="http://icq.rambler.ru/">http://icq.rambler.ru/</a></p>
</body>
</html>