Author Topic: Lost Password ?  (Read 1838 times)

Offline coolbreeze

  • Hero Member
  • *****
  • Posts: 2668
  • Error #152 - Windows not found: (C)heer (P)arty (D
Lost Password ?
« on: June 18, 2009, 07:48:50 PM »
Found this in the Linux Journal

The following methods can be used for resetting the root password if the root password is unknown.

If you use GRUB for booting, select the system to be booted, and add 1 to the end of the kernel boot command. If you're not presented with an edit “box” to add boot parameters, try using GRUB's edit command (the letter e). The 1 tells the kernel to boot to single-user mode.

The system now should boot to a root prompt. At this point, simply use the passwd command to change the root password.

Another option is to boot a rescue CD or an installation CD that lets you get to the command line. Once you're at a command prompt, mount the system's root directory if it's not already mounted:

$ mkdir /mnt/system
$ mount /dev/sda1 /mnt/system

Now, do a chroot and reset the password:

$ chroot /mnt/system
$ passwd
Linux user #440309
PCLOS IS THE KING  Please Donate to the cause. PCLinuxOS
My mind is so full that there's no room to think.
M5A78L-M mobo, AMD Phenom IIx 6 1055T, 4Gig ram,nvidia GeForce GT 240 1 Gig, Netgear DGN2200

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: Lost Password ?
« Reply #1 on: July 24, 2011, 06:17:19 PM »
Found this in the Linux Journal

The following methods can be used for resetting the root password if the root password is unknown.

If you use GRUB for booting, select the system to be booted, and add 1 to the end of the kernel boot command.

Using the PCLOS 2011 GRUB menu, how can I add (or where do I add) a "1"?

 If you're not presented with an edit “box” to add boot parameters, try using GRUB's edit command (the letter e). The 1 tells the kernel to boot to single-user mode.

From the GRUB login menu how does one get to the edit command?

The system now should boot to a root prompt. At this point, simply use the passwd command to change the root password.

Another option is to boot a rescue CD or an installation CD that lets you get to the command line. Once you're at a command prompt, mount the system's root directory if it's not already mounted:

$ mkdir /mnt/system
$ mount /dev/sda1 /mnt/system

Now, do a chroot and reset the password:

$ chroot /mnt/system
$ passwd



PLEASE SEE BLUE QUESTIONS IN TEXT ABOVE
Is there any other method to recover or fix the root password?  When I was changing the password, I flubbed something, and I cannot determine what the   password now is!!!


newlife

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: Lost Password ?
« Reply #2 on: July 24, 2011, 06:44:43 PM »
ALL is OK.... Finally figured it out....

newlife