Advertisement

This is the sucks...

Started by February 26, 2002 02:44 PM
5 comments, last by Russell 22 years, 11 months ago
I don''t suppose that there''s anything I can do if I can''t remember the root password huh? LOL, oops... Maybe it''s time to re-install Linux? Russell
Reboot in single user mode, change the password.
Advertisement
Uh, excuse my ignorance, but don''t you need the root password to logon as root, even in single-user mode?
Some boxes will let you in without a root password in single user mode. The alternative would be to download "Toms Root Boot" (sorry don''t have the link at the moment, but I''m sure google would oblige).

Transfer the image to a floppy, boot the machine off the floppy, chroot to the harddrive.
You''re on as root, simply change the password by whatever configuration tool you prefer, and reboot.

They''re coming for you!
I''ve had to do this before. I had to look it up on a search site on how to do it, but it gave step by step instructions on how to change the root password. Something about booting into a different run level, thats all I remember.
Hitchhiker90"There's one bitch in the world, one bitch with many faces" -- Jay"What are you people, on dope?" -- Mr. Hand
If you''ve got a bootloader which supports kernel options (LILO does, GRUB probably does, too), you can just add "init=/bin/sh" to the kernel commandline. Say e.g. your kernel image is called "Linux" in LILO, you''d enter "Linux init=/bin/sh" at the LILO prompt.

This will start the shell instead of the init process after the kernel has finished initialization. The just run passwd or edit /etc/passwd by hand

cu,
Prefect
Widelands - laid back, free software strategy
Advertisement
If you''ve got a bootloader which supports kernel options (LILO does, GRUB probably does, too), you can just add "init=/bin/sh" to the kernel commandline. Say e.g. your kernel image is called "Linux" in LILO, you''d enter "Linux init=/bin/sh" at the LILO prompt.

This will start the shell instead of the init process after the kernel has finished initialization. The just run passwd or edit /etc/passwd by hand

cu,
Prefect
Widelands - laid back, free software strategy

This topic is closed to new replies.

Advertisement