[nylug-talk] Re: user lockout from Ubuntu dapper

George Bourozikas
Fri Jun 30 15:44:29 EDT 2006


On Friday 30 June 2006 15:23, Johri, Mayank (GTI) wrote:
> Hello All,
>
> Today I found myself in very funny situation,
> I have ubuntu 6.06 on my laptop. I had only one user on my machine and I
> deleted that user and recreated it and then I rebooted my machine. Now I
> can not use the sudo command as new user is not part of admin group. :( And
> for some unknown reason (replace it with ME) my lilo only does not even
> give me failsafe mode. What shall I do now. ________________________
> Thanks and Regards,
> Mayank Johri

Hi

Please start new posts with a descriptive subject - replying to the digest is 
not very helpful.  I happened to glance at your message, but I usually just 
delete those.

On the issue at hand:

1) Boot with a live CD like the K/Ubuntu CD and mount the partition that 
contains /etc - usually this would be /

2) Edit /etc/sudoers to contain your new login name.  This could be something 
like:

yourusername ALL=(ALL) ALL

or, to sudo without requiring a password,

yourusername ALL=(ALL) NOPASSWD: ALL

This should do it.

--george
-- 
George Bourozikas


More information about the nylug-talk mailing list