Re: lost bootable linux password

From: Bit Twister (BitTwister_at_localhost.localdomain)
Date: 12/28/03


Date: Sun, 28 Dec 2003 00:59:53 GMT

On Sun, 28 Dec 2003 00:53:34 +0000 (UTC), Anonymous Sender wrote:
> Hello I am using a live bootable-linux, Adios, and forgot the root password.
>
> Can anybody tell me of a fairly easy way to change the unknown password,
> mabe I can delete a file and reboot the bootable cd and start over?

google_single_password_search_tag

You can change passowrd at a command line prompt with
passwd (login id to change here)

If your boot menu has a "failsafe" selection, that will boot into
single user level 1 mode. If not the boot loader grub or lilo
will allow you to set single/level 1 mode.

----------------- using grub ----------------------
When at the grub menu

Hit e to get to the edit mode
You should be on the Kernel line containing /vmlinuz
Hit e again and add a
      space single
to the end of line and hit Enter key. Example:
    kernel (hd0,4)/vmlinuz 1 root=/dev/hda9 mem=128M single
then b to boot

You then come to the sh-nnn# prompt.

When you "exit" the system will continue booting.

---------------- using lilo -----------------------

Hit Tab key at lilo prompt then

linux 1 or linux single

----------------------------------------------------

Another method would be to boot cd 1 in the rescue mode
and mount your hard drive partition ang get it chroot'ed



Relevant Pages

  • Re: Reset root password
    ... >> figure out how to reset it. ... >> Is there a way that i can reset the root password from the system ... > Depends on which boot loader you use ... > Hit e to get to the edit mode ...
    (comp.os.linux.security)
  • Re: Breaking password on FreeBSD 5.2.1 box
    ... >We have a client running a fBSD 5.2.1 box that needed its root password ... >I couldn't boot into single user mode w/o the root password, ... Step 1: Boot the computer. ... Hit enter when it asks you what shell you want to use. ...
    (freebsd-questions)
  • RE: Forget Root Password
    ... I forget the root password what can i do, so i cant log in to freebsd ... during boot up there's a prompt which says to hit enter to boot /kernel or ... Hit any other ... then get a shell prompt where you run these commands: ...
    (freebsd-questions)
  • Re: help i forgot my password
    ... > to re-install the whole thing or to change the root password. ... I suppose this is a faq, but anyway, during boot up there's a prompt ... which says to hit enter to boot /kernel or something like that. ...
    (freebsd-newbies)
  • Re: Repair Install?
    ... >I'm looking to do a repair install but I've never done it ... You need to hit whatever key at Power on leads into the BIOS setup. ... or there will be an item on BIOS Setup page 'Boot order'; ...
    (microsoft.public.windowsxp.general)