If you can use a live disk of some sort to get access to the hard drive you can open the /etc/passwd file and delete the 'x' after root:. This will disable the password for the root account so you can log back in and type $su this will drop you into the root shell and you'll be able to edit sudoers.... Or come to think of it you could just edit it while you're in the live disk environment!! *smacks forehead* Lol Ben
On 15/05/07, Roger Searle <[EMAIL PROTECTED]> wrote:
I have a new install of kubuntu feisty and have lost access to sudo. It appears to be related to entries in the /etc/sudoers file that has been modified by smb4k (while attempting to configure the latter). Any attempt to run a programme like adept or automatix returns "su returned with an error". and the following: [EMAIL PROTECTED]:~$ sudo kate /etc/sudoers >>> sudoers file: syntax error, line 23 <<< >>> sudoers file: syntax error, line 30 <<< >>> sudoers file: Alias `SMB4KUSERS' already defined, line 35 <<< sudo: parse error in /etc/sudoers near line 23 [EMAIL PROTECTED]:~$ this makes me pretty much stuck? i'm thinking a reinstall as this install is only a few hours old (here I go again!). but just in case anyone knows how to fix this, please let me know... a few references in google to this and a bug report here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg248358.html Roger
-- Regards, Ben Ford [EMAIL PROTECTED] +628111880346
