You are not logged in.
Pages: 1
I was just trying some things and I wanted to see if I could change my root password with the usermod command, so I typed in the command
usermod -pXXXX root
This changed my password, but not to what I typed in. Now my original password doesn't work, nor the new password I typed in. Just wondered if anybody new anything.
Thanks
Offline
do you have sudo setup? If not, you will probably need to boot directly into a shell...you can pass some string to grub to acheive this, but i cant remember it offhand.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
no, i don't have sudo setup, Does anyone know how to boot into a shell with grup, i haven't been able to figure it out.
Offline
thanks for the help i figured out how to do it and its fixed.
Offline
I think you might be able to change it by logging into single mode. Once in Grub choose whatever option it is to add boot parameters and add 'single' to the end of the line.
Offline
I think you might be able to change it by logging into single mode. Once in Grub choose whatever option it is to add boot parameters and add 'single' to the end of the line.
Will this not ask for a root password?
Offline
i believe passwordless singe user mode is a more redhat centric setup. not positive though...
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
reboot into grub and pass the kernel the argument "single", this should let you boot with root permissions.
I summon daemons from the depths of /etc/rc.d
Offline
I'm pretty sure arch single user mode asks for a password or CTRL+D to boot into normal mode or whatever.
Offline
hmmm...
maybe he could boot from a LiveCD, change the root password on the LiveCD to something he wants and then copy the respective part of /etc/shadow?
I summon daemons from the depths of /etc/rc.d
Offline
using a livecd, you simply chroot to the arch partition and run the passwd command.
There's talk elsewhere on this forum about how to use grub to run bash directly with root privleges. Can't remember how.
Dusty
Offline
There's talk elsewhere on this forum about how to use grub to run bash directly with root privleges. Can't remember how.
funny. I mentioned that in the second post.
Anyway, he said he fixed it. I don't see why people are still trying to provide off the wall solutions.
oh well.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
When in Grub, press 'e' to edit the boot option. Then add "init=/bin/bash rw" at the end to log in as root. Change password and reboot.
EDIT:
Anyway, he said he fixed it. I don't see why people are still trying to provide off the wall solutions.
oh well.
Indeed, I missed him mentioning it, but now you say... Oh well.
Offline
Glad he got it fixed... for the record, Knoppix can do it with:
sudo mount -o rw /dev/hda1 /mnt/hda1
sudo chroot /mnt/hda1 passwd
...that's right if I remember correctly.
oz
Offline
This should go in the wiki if its been brought up so much lately... I think there is something about how to do it using a live CD in there, but not the grub method. I'd do it, but I really don't feel like it right now, so I'm suggesting some other eager user take a look at it.
Dusty
Offline
Pages: 1