Over the weekend I was helping my brother install SuSE Linux 8.0 and advised him to change the root password to something of his own choosing. Well, ...that was it, the password he says he entered does not fit and the old one I set does not fit either. Now I'm stuck, as I can not remember how to start the system in an anonymous shell so that I can reset everything. Does anyone on this list remember to how to get out of this problem? -William
On Tue, 28 May 2002, William Dulyea wrote:
Over the weekend I was helping my brother
someone who knows, wrote, the other day :- ___________________ Yeah, boot the system with the floppy and choose to start the rescue system. (There are alot of ways to do this, some like the cdrom rescue boot) So boot up, it will say "Yomamma" or "Rescue", and you won't have to have a password. Then say your / partition is /dev/hda3, do mount -t ext2 /dev/hda3 /mnt (use reiserfs if required) then vi /mnt/etc/shadow and find the root entry and delete everything between the first 2 colons after the root entry. When done it should look like root::100112:......... JUST MAKE THE FIRST 2 COLONS ADJACENT hit : w to write and exit vi reboot, and you will get a root prompt but not need a password. You're back.......just enter passwd to set a new root passwd and then change all user passwords back to something you remember. ................... best wishes ____________ sent on Linux ____________
much easier solution boot up and at lilo prompt type linux single rw init=/bin/bash now let it boot up, at the prompt type passwd and reset the root password this has worked for me on suse, redhat, mandrake, caldera and slackware On Tuesday 28 May 2002 12:57 pm, tabanna wrote:
On Tue, 28 May 2002, William Dulyea wrote:
Over the weekend I was helping my brother
_________________
someone who knows, wrote, the other day :- ___________________
Yeah, boot the system with the floppy and choose to start the rescue system. (There are alot of ways to do this, some like the cdrom rescue boot) So boot up, it will say "Yomamma" or "Rescue", and you won't have to have a password. Then say your / partition is /dev/hda3, do mount -t ext2 /dev/hda3 /mnt (use reiserfs if required) then vi /mnt/etc/shadow and find the root entry and delete everything between the first 2 colons after the root entry. When done it should look like root::100112:......... JUST MAKE THE FIRST 2 COLONS ADJACENT hit : w to write and exit vi reboot, and you will get a root prompt but not need a password. You're back.......just enter passwd to set a new root passwd and then change all user passwords back to something you remember. ...................
best wishes
____________
sent on Linux
____________
-- Chad Whitten Network/Systems Administrator neXband Communications cwhitten@nexband.com
* Chad Whitten
much easier solution boot up and at lilo prompt type linux single rw init=/bin/bash
now let it boot up, at the prompt type passwd and reset the root password
Just make sure that where /etc resides is not mounted read-only. -- Mads Martin Jørgensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort?" -- A. P. J.
Thanks to everyone that replied. -William At 05:57 PM 5/28/2002 +0000, tabanna wrote:
On Tue, 28 May 2002, William Dulyea wrote:
Over the weekend I was helping my brother
someone who knows, wrote, the other day :- ___________________
Yeah, boot the system with the floppy and choose to start the rescue system. (There are alot of ways to do this, some like the cdrom rescue boot) So boot up, it will say "Yomamma" or "Rescue", and you won't have to have a password. Then say your / partition is /dev/hda3, do mount -t ext2 /dev/hda3 /mnt (use reiserfs if required) then vi /mnt/etc/shadow and find the root entry and delete everything between the first 2 colons after the root entry. When done it should look like root::100112:......... JUST MAKE THE FIRST 2 COLONS ADJACENT hit : w to write and exit vi reboot, and you will get a root prompt but not need a password. You're back.......just enter passwd to set a new root passwd and then change all user passwords back to something you remember. ...................
best wishes
____________
sent on Linux
____________
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
You can also try this. Boot the system and when you see the boot screen that has your choices on it, Press the Esc key and tab to where the word linux is. Then type out to the side of it this "init 1" without the quotes of course. This will put you into a administrative mode and should allow you to reset roots password with the passwd utility. Like so passwd foobar where foobar is the password that you want to assign to the root account. Marshall Heartley A+,Network+ "Nothing is impossible, We just do not have all the anwsers to make the impossible possible." On Tue, 2002-05-28 at 13:54, William Dulyea wrote:
Over the weekend I was helping my brother install SuSE Linux 8.0 and advised him to change the root password to something of his own choosing. Well, ...that was it, the password he says he entered does not fit and the old one I set does not fit either. Now I'm stuck, as I can not remember how to start the system in an anonymous shell so that I can reset everything. Does anyone on this list remember to how to get out of this problem?
-William
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
that has never worked for me, always drops me to a root password prompt. On Tuesday 28 May 2002 02:57 pm, Marshall Heartley wrote:
You can also try this. Boot the system and when you see the boot screen that has your choices on it, Press the Esc key and tab to where the word linux is. Then type out to the side of it this "init 1" without the quotes of course. This will put you into a administrative mode and should allow you to reset roots password with the passwd utility. Like so passwd foobar where foobar is the password that you want to assign to the root account.
Marshall Heartley A+,Network+
"Nothing is impossible, We just do not have all the anwsers to make the impossible possible."
On Tue, 2002-05-28 at 13:54, William Dulyea wrote:
Over the weekend I was helping my brother install SuSE Linux 8.0 and advised him to change the root password to something of his own choosing. Well, ...that was it, the password he says he entered does not fit and the old one I set does not fit either. Now I'm stuck, as I can not remember how to start the system in an anonymous shell so that I can reset everything. Does anyone on this list remember to how to get out of this problem?
-William
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
-- Chad Whitten Network/Systems Administrator neXband Communications cwhitten@nexband.com
participants (5)
-
Chad Whitten
-
Mads Martin Joergensen
-
Marshall Heartley
-
tabanna
-
William Dulyea