forgotten "root" password - SuSE 9.3
Hello all Last Friday, I installed SuSE 9.3 AMD64 on a laptop. I did not noticed the root password on a paper, thinking that I'll keep it in memory. But the human memory is not perfect ... and I forgot this password. So, don't panic, said I myself, there is a way to solve this problem. I booted on the DVD and selected "rescue". After login, I mounted the partition : mount /dev/hdc1 /mnt Then, I went to /mnt/etc and edited at first the "passwd" file. I suppressed the "x" in root:x: ..... Finally, I edited the "shadow" file and suppressed the coded password with other datas. As result, there was : root:::::::: I rebooted the laptop on its harddisk. But, no way to establish a login as root. I tried with "root::::" as suggested on the SuSE forum. No improvement. Well, I think that there is an other protection level. An idea of how to do in such a case ? Thanks Pascal
Hello Pascal On the boot prompt append '1 rw init=/bin/bash' without the quotes. This will start a shell without having to enter a password. There: # passwd # init 6 Cheers Walter On Monday, 12. September 2005 21.10, patheve2 wrote:
Hello all
Last Friday, I installed SuSE 9.3 AMD64 on a laptop. I did not noticed the root password on a paper, thinking that I'll keep it in memory. But the human memory is not perfect ... and I forgot this password. So, don't panic, said I myself, there is a way to solve this problem. I booted on the DVD and selected "rescue". After login, I mounted the partition : mount /dev/hdc1 /mnt Then, I went to /mnt/etc and edited at first the "passwd" file. I suppressed the "x" in root:x: ..... Finally, I edited the "shadow" file and suppressed the coded password with other datas. As result, there was : root:::::::: I rebooted the laptop on its harddisk. But, no way to establish a login as root. I tried with "root::::" as suggested on the SuSE forum. No improvement. Well, I think that there is an other protection level. An idea of how to do in such a case ? Thanks
Pascal
participants (2)
-
patheve2
-
Walter Betschart