cant login as root
hello,
I've installed slack 12.2, and upgraded to the new kernel packages, but I didnt rebuild the initrd (!). I reboot the machine, and get 'kernel panic'. So I think I'll just get back in and fix it by using the slack dvd and Code:
boot: hugesmp.s root=/dev/hda2 rdinit=ro is there anyway to get in as root without the password? |
from single user mode (init 1) run "passwd" and change the password
[edit] oops - that doesn't work... you can follow this thread: http://www.linuxquestions.org/questi...ht=root+passwd [/edit] |
Quote:
|
Have you tried the "init=/bin/bash" boot parameter?
If this gets you to bash prompt, you'll be "logged in" as root, and then you can change the password. |
Quote:
Other methods I have tried like tagging init=/bin/bash or single to the lilo prompt have problems for me. One is I can't get a lock on the password file when I try and write to it. The chroot seems to be the only reliable method. |
I followed the advice in this thread:
http://www.linuxquestions.org/questi...ht=root+passwd particularly post #4, after following those instructions and bits of info from other posts, I then went into /hd/etc/shadow, and deleted the root password. I then rebooted using the slack 12.2 dvd with this: boot: hugesmp.s root=/dev/hda2 rdinit=ro and was able to login as root, and fix the inital problem. I can eat my dinner now! Thanks everyone :) |
All times are GMT -5. The time now is 04:09 PM. |