Re: [suse-security] I forgot my root password
![](https://seccdn.libravatar.org/avatar/a1e67eb1bd56a1ef46375d46b690a857.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/43a01556e05f105f0c5e97b999389d66.jpg?s=120&d=mm&r=g)
Hi Sven, Hi Folks, Sven Michels wrote: Friday, October 26, 2001 8:46 PM Subject: Re: [suse-security] I forgot my root password
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.
Sorry, but if you call your way more simple than entering the system via rescue-system I dont't know what you call complicated. You only have to kill the X-entry in /etc/passwd (only maybe in /etc/shadow). Regard my answer. Nevertheless how one enters. the root-password has to be redefined. Greetings Guido
![](https://seccdn.libravatar.org/avatar/eee34aa82cee0eeb62e98cb7106d6afc.jpg?s=120&d=mm&r=g)
is as simple as writing in lilo linux init 1 i have change a lot of times my password this way regards jim _/\_ (00) /( )\ _| |_ From: "Guido Schiffer" <guido_schiffer@web.de> To: <suse-security@suse.com> Sent: Friday, October 26, 2001 11:19 PM Subject: Re: [suse-security] I forgot my root password
Hi Sven, Hi Folks,
Sven Michels wrote: Friday, October 26, 2001 8:46 PM Subject: Re: [suse-security] I forgot my root password
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.
Sorry, but if you call your way more simple than entering the system via rescue-system I dont't know what you call complicated. You only have to kill the X-entry in /etc/passwd (only maybe in /etc/shadow). Regard my answer. Nevertheless how one enters. the root-password has to be redefined.
Greetings Guido
-- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
![](https://seccdn.libravatar.org/avatar/bbb8bbe88d3c0ebe19dc932cfa0b693c.jpg?s=120&d=mm&r=g)
Using init=/bin/sh is a LOT more simple if you don't have a cdrom for example (most of my servers don't have cdrom drives). the init=/bin/sh will work, no matter what unless someone has locked down lilo with restricted and password. Kurt
participants (4)
-
Guido Schiffer
-
jim
-
Kurt Seifried
-
Sven Michels