After reinstalling and using salix for an hour, my root password does not work.
How can i change my password? Thank you!
Root password does not work
Re: Root password does not work
That's not possible. You either forgot your root password, or you're not being careful and you have your capslock on (or had when setting the password) or your numlock on if you're on a laptop.macondo wrote:my root password does not work
You can set a new password if you chroot from a live cd (or the installation disc).
Re: Root password does not work
I introduced my Salix 1337 Fluxbox installation cd, i exited the installation, at the root prompt i typed:gapan wrote:That's not possible. You either forgot your root password, or you're not being careful and you have your capslock on (or had when setting the password) or your numlock on if you're on a laptop.macondo wrote:my root password does not work
You can set a new password if you chroot from a live cd (or the installation disc).
Code: Select all
# passwd
Thanks anyway.
Re: Root password does not work
The link i followed never mentioned the chroot part, could you explain how to chroot and where in the process is it applied?gapan wrote:You missed the chroot part.
Re: Root password does not work
Code: Select all
mkdir /foo
mount /dev/sdxX /foo
chroot /foo
passwd
Re: Root password does not work
chroot was gapan's suggestion, that link points to some different ways of doing it with instructions.
However, something like this ought to work:
1 Boot the CD
2 Open a terminal and become root
3 Mount the / partition of your installation, perhaps creating a mount point for it, e.g.
#mkdir /tmp/mainlinux
#mount /dev/sda1 /tmp/mainlinux
4 Use chroot to change the password
#chroot /tmp/mainlinux passwd
... it will prompt you to choose a new password
5 Try booting your main linux installation with the new password
Good luck!
However, something like this ought to work:
1 Boot the CD
2 Open a terminal and become root
3 Mount the / partition of your installation, perhaps creating a mount point for it, e.g.
#mkdir /tmp/mainlinux
#mount /dev/sda1 /tmp/mainlinux
4 Use chroot to change the password
#chroot /tmp/mainlinux passwd
... it will prompt you to choose a new password
5 Try booting your main linux installation with the new password
Good luck!
