PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 25, 2012, 08:40:13 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Lost Password ?  (Read 1527 times)
coolbreeze
Hero Member
*****
Offline Offline

Posts: 2668


Error #152 - Windows not found: (C)heer (P)arty (D


« on: June 18, 2009, 08: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
Logged

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
Newlife
Full Member
***
Offline Offline

Posts: 228


« Reply #1 on: July 24, 2011, 07: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
Logged
Newlife
Full Member
***
Offline Offline

Posts: 228


« Reply #2 on: July 24, 2011, 07:44:43 PM »

ALL is OK.... Finally figured it out....

newlife
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM