Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
forget passwd during install
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
rb32
Guest





PostPosted: Sun Jul 28, 2002 7:06 pm    Post subject: forget passwd during install Reply with quote

I did the installation like described in Gentoo 1.2 Installation Instructions, but I forgot to to "passwd". Now my system is rebooted and I can't login.
What can I do?
Back to top
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Jul 28, 2002 7:24 pm    Post subject: Reply with quote

If you didn't set a password, you should be able to login with no password. If you actually set a password (and are referring to the root user), then you can boot from the install CD and mount the filesystem with /etc/passwd and /etc/shadow. Edit them, removing the password.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
elboricua
Apprentice
Apprentice


Joined: 17 May 2002
Posts: 226
Location: Bronx, NY

PostPosted: Sun Jul 28, 2002 7:24 pm    Post subject: Reply with quote

The password should be blank if you did not set one. Just hit enter. If that does not work, boot off of the install cd. Follow the install instructions to mount the drive /mnt/gentoo et al and chroot into your system then you can do passwd to change the password. Exit, umount the directories and reboot. That should get it for you :D
_________________
Boricua Hasta La Muerte
Back to top
View user's profile Send private message
thekillerbean
n00b
n00b


Joined: 24 Jul 2002
Posts: 29

PostPosted: Sun Jul 28, 2002 7:32 pm    Post subject: Reply with quote

if you followed the instructions located here, then this is what you need to do:
1. boot from the boot cd and when you get to the prompt do the following:
Code:

# swapon /dev/hda2
# mkdir /mnt/gentoo
# mount dev/hda3 /mnt/gentoo
# chroot /mnt/gentoo /bin/bash
# passwd

change your password o whatever you want.
Code:

# exit
# cd /
# umount /mnt/gentoo
# reboot

i believe that's what i did when i forgot to copy the bzimage to the boot partition. i had to of course mount the boot partition, but you don't need to as you are only changing the password.

if this is not correct, please, someone, anyone, correct it and post.
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