Root password does not work

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
macondo
Posts: 90
Joined: 16. Jun 2011, 02:08

Root password does not work

Post by macondo »

After reinstalling and using salix for an hour, my root password does not work.
How can i change my password? Thank you!
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Root password does not work

Post by Shador »

Image
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: Root password does not work

Post by gapan »

macondo wrote:my 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.

You can set a new password if you chroot from a live cd (or the installation disc).
Image
Image
macondo
Posts: 90
Joined: 16. Jun 2011, 02:08

Re: Root password does not work

Post by macondo »

gapan wrote:
macondo wrote:my 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.

You can set a new password if you chroot from a live cd (or the installation disc).
I introduced my Salix 1337 Fluxbox installation cd, i exited the installation, at the root prompt i typed:

Code: Select all

# passwd
Entered the new password twice, rebooted got the installation cd out and booted, still does not recognized the new password.
Thanks anyway.
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: Root password does not work

Post by gapan »

You missed the chroot part.
Image
Image
macondo
Posts: 90
Joined: 16. Jun 2011, 02:08

Re: Root password does not work

Post by macondo »

gapan wrote:You missed the chroot part.
The link i followed never mentioned the chroot part, could you explain how to chroot and where in the process is it applied?
User avatar
gapan
Salix Wizard
Posts: 6364
Joined: 6. Jun 2009, 17:40

Re: Root password does not work

Post by gapan »

Code: Select all

mkdir /foo
mount /dev/sdxX /foo
chroot /foo
passwd
replace sdxX with your root partition.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Root password does not work

Post by mimosa »

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! :)
Post Reply