Results 1 to 2 of 2

Thread: Linux Tips:Recover u r Root Password......

  1. #1
    Expert Member
    Join Date
    May 2009

    Smile Linux Tips:Recover u r Root Password......

    Hi Friends,

    Linux Tips :Recover u r Linux Root Password

    Just follow the below steps to recover it.

    1. Reboot your system and at the GRUB press "e". Edit the first line and make sure it says "linux single". Then press "b" to boot the new entry line.

    2. You will now have access to a BASH prompt. Enter the following commands:

    cd /etc
    nano passwd

    and look for a line somewhere at the top of the file that looks like this:


    You must remove the "x" from that line so it will look like this:


    And save the file.

    3. Run the following command:

    nano shadow

    Edit the first line in the shadow file by removing the encrypted password. The line must now look exactly like this:


    Now save the file.

    4. Reboot the system and log in as a normal user, then set your new root password using the following commands:


    Thanks & Regards,

  2. #2
    Expert Member
    Join Date
    Jan 2008

    Re: Linux Tips:Recover u r Root Password......

    Has this been tested on any of the distros???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.