gnewsense-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gNewSense-users] I did something stupid - root password locked :-(


From: Karl Goetz
Subject: Re: [gNewSense-users] I did something stupid - root password locked :-(
Date: Sat, 24 Feb 2007 13:31:38 +1030
User-agent: Thunderbird 1.5.0.9 (X11/20070104)

andrei raevsky wrote:
> Dear friends,
> 
> Dennis and Karl:
> 
> Nope, I did not do that as I was not aware of this option.  I never
> used Ubuntu in the past, I only used Debian and then added gNewSense
> to (most) of my computers.  Thanks a lot for the tip.  Since my friend
> is a total newbie to GNU/Linux, instead of giving him back root access
> I was thinking of just doing 'passwd' in the root shell and create a
> password for myself on his machine.  From the Ubuntu doc Michael
> pointed out to me I get that while this might not be the most
> convenient thing for him right now (as soon as he is more comfortable
> I will give him the admin rights back) it is easier for me to keep an
> eye on what he will be doing.  That would not be a problem, right?
> 

If you want to keep an account, don't unlock root, add yourself an account.

in rescue mode (or a shell if you have the system running again)
adduser yourlogin
gpasswd -a yourlogin admin
passwd -l root

These commands to the following:
add a user
put the user in the admin group (ie sudoer)
lock the root password again
kk

-- 
Karl Goetz
User of gNewSense: Free as in Freedom - http://www.gnewsense.org
Australian Ubuntu users team - http://wiki.ubuntu.com/AustralianTeam
User of Debian, The Universal Operating System - http://www.debian.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]