Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Newbie needs help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lroy1978
Apprentice
Apprentice


Joined: 28 Jan 2006
Posts: 189
Location: Lille, France

PostPosted: Sat Jan 28, 2006 9:39 pm    Post subject: Newbie needs help! Reply with quote

Hi All,
Ive just installed gentoo and I have gotten to the point where I have rebooted my system. The problem
is that I dont have the root password and I hadn't got around to installing any users yet! Help!

Is there any easy way to get around this problem?

Many thanks
Lee
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Sat Jan 28, 2006 9:48 pm    Post subject: Reply with quote

If hiting enter and the password prompt doesn't do it you can,
Boot of the Live CD
mount your file systems to "/mnt/gentoo"
chroot into /mnt/gentoo
and type : passwd

Voila :)
Ed.
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
pepperbob
n00b
n00b


Joined: 28 Jan 2006
Posts: 11

PostPosted: Sat Jan 28, 2006 10:00 pm    Post subject: Reply with quote

The chrooting should work.

This is another way to do it:

boot the install cd
mount your root partition (the one on your harddisk)
edit your /etc/shadow file (on you mounted root partition)
find a line like:
root:dsfDSDF!s:12581:0:99999:7:::

and remove everything between the first two colons, it should look like:
root::12581:0:99999:7:::
afterwards.

unmount and reboot. Login with root and no password.

I suggest chrooting instead of editing the shadow file...
Back to top
View user's profile Send private message
lroy1978
Apprentice
Apprentice


Joined: 28 Jan 2006
Posts: 189
Location: Lille, France

PostPosted: Sat Jan 28, 2006 10:00 pm    Post subject: Reply with quote

Thank you very much! Problem sorted!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum