View previous topic :: View next topic |
Author |
Message |
rb32 Guest
|
Posted: Sun Jul 28, 2002 7:06 pm Post subject: forget passwd during install |
|
|
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
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Jul 28, 2002 7:24 pm Post subject: |
|
|
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 |
|
|
elboricua Apprentice
Joined: 17 May 2002 Posts: 226 Location: Bronx, NY
|
Posted: Sun Jul 28, 2002 7:24 pm Post subject: |
|
|
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 _________________ Boricua Hasta La Muerte |
|
Back to top |
|
|
thekillerbean n00b
Joined: 24 Jul 2002 Posts: 29
|
Posted: Sun Jul 28, 2002 7:32 pm Post subject: |
|
|
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 |
|
|
|