![](https://seccdn.libravatar.org/avatar/a1e67eb1bd56a1ef46375d46b690a857.jpg?s=120&d=mm&r=g)
26 Oct
2001
26 Oct
'01
18:46
Hi, I have a SuSE 7.1 box with 2.4.7 kernel. I forgot my root password (yes, i am an idiot). How can I make to reset it?
I have tried to boot as "lilo: linux single" but anyway he asks me for the root password.
lilo: linux init=/bin/sh should give you the rootshell, mount / -n -o remount,rw to mount / writeable, than passwd and set a new password, mount / -n -o remount,ro afther that and you should be able after reboot to login with your new password.
I have tried too boot with a CDrom but with same result. If you boot with the cd, you boot only your system. You can boot a rescue system and mount the root partition to edit your /etc/shadow, but that is more complicated.
Have fun, Sven