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

</body>
</html>