Find the answer to your Linux question:
Results 1 to 4 of 4
I had Ubuntu installed on a new computer. I forgot the username/password combination. After visiting this forum yesterday, I found the solution to go into the grub menu, then to ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2

    Password help

    I had Ubuntu installed on a new computer. I forgot the username/password combination. After visiting this forum yesterday, I found the solution to go into the grub menu, then to the root shell prompt, and be able to enter commands to retrieve the user name and change the password. I did this, and was able to change my password, but could not retrieve the username. I restarted my computer and went to try again to get the username. When I went into recovery mode, it asked me for a password to continue. I entered the new password and was able to gain access to the root shell prompt. I still had no luck retrieving the username. I found some new instructions and went to try again, however now in recovery mode, my password will not work. Please help.

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Try going into the root shell again and run the following command. This will give a list of all users along with system groups (a lot you won't recognise!). See if you can spot your username here
    Code:
    awk -F: '{ print $1 }' /etc/passwd
    That may look like a crazy command but it's designed to filter down to just usernames from the /etc/passwd file. There is actually a lot more data in there that you don't need to worry about in this instance.

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2
    Thank you!! When I try to go in the root shell now, it tells me to enter a password to continue....the passwd I had changed does not work so I cannot get into the root shell.

  4. #4
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Did you change the password for root, or the other user you are trying to find? Try the old root password.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...