I'd boot up with a live cd,<div><br></div><div>mount your partition containing the messed up sudoers file.</div><div>replace sdx with you partition.</div><div><br></div><div>sudo mount /dev/sdx /mnt</div><div><br></div>
<div>sudo mousepad /mnt/etc/sudoers</div><div><br></div><div>heres the default</div><div><br></div><div>-------------------------</div><div><br></div><div><div># /etc/sudoers</div><div>#</div><div># This file MUST be edited with the 'visudo' command as root.</div>
<div>#</div><div># See the man page for details on how to write a sudoers file.</div><div>#</div><div><br></div><div>Defaults<span class="Apple-tab-span" style="white-space:pre">        </span>env_reset</div><div><br></div><div>
# Host alias specification</div><div><br></div><div># User alias specification</div><div><br></div><div># Cmnd alias specification</div><div><br></div><div># User privilege specification</div><div>root<span class="Apple-tab-span" style="white-space:pre">  </span>ALL=(ALL) ALL</div>
<div><br></div><div># Uncomment to allow members of group sudo to not need a password</div><div># (Note that later entries override this, so you might need to move</div><div># it further down)</div><div># %sudo ALL=NOPASSWD: ALL</div>
<div><br></div><div># Members of the admin group may gain root privileges</div><div>%admin ALL=(ALL) ALL</div><div><br></div><div><br></div><div>---------EOF-----------------</div></div><div><br></div><div><br></div>