Forgot password? cannot use password? How to reset

Post your tutorials and howtos here.
wayne
Posts: 178
Joined: 25 Feb 2013 14:58

Forgot password? cannot use password? How to reset

Postby wayne » 06 Mar 2013 05:06

Sometime, when you forgot the password, or you think you remember correctly but you still cannot login using the 'correct password', then you may have to reset the password.

These are the steps I used, propably need some others to confirm it works in Solyd.

1. Boot computer, wait for grub2 boot menu to show up.
2. On grub2 menu, use arrow key to scroll to the line for 'recovery mode',
usually this is the second line on the grub2 boot menu, when your grub2 is version 1.99-xx.
Then press 'e' and hit Enter key.
3. A text windows should pop-up. Use arrow key to scroll down to a line that start with linux /boot , which would looks like this
linux /boot/vmlinuz-3.2.0-.... root=uuid-xxxxxx ro single
4. move arrow to end of the linux line, delete ( with Backspace key) the ro single
5. type in rw init=/bin/bash, so the linux line would read:
linux /boot/vmlinuz-3.2.0-.... root=uuid-xxxxxx rw init=/bin/bash
6. hit ctrl-x or F10 to boot computer
7. it should boot to a password-less root shell that end with something like
(none) / #
8. Type in this command, with your_login_name and hit Enter key
passwd your_login_name
9.It will prompt you to enter new UNIX password, key in your new password, and Retype the same password when prompted second time
10. it should then show you
passwd: password updated successfully

11. Now you can power off computer, Power on again, and proceed to login with new password.

Hope this helps :mrgreen:

cwwgateway
Posts: 1215
Joined: 23 Feb 2013 19:14

Re: Forgot password? cannot use password? How to reset

Postby cwwgateway » 08 Mar 2013 00:55

Wayne, thank you for writing this, and I'm sorry for taking so long to test this :oops: . On SolydK 64-bit, there were two differences from the instructions (which I think apply to all editions). The first is once you select recovery mode in grub, you have to press "e" to get the pop-up window. The other was in step 8, I think the command is:

Code: Select all

passwd your_login_name
The difference being passwd vs password.
Dell XPS 15:
SolydX Debian Testing
SolydK Testing
SolydX Testing
Debian Sid Xfce
Debian Wheezy KDE
Arch Gnome Shell

Gateway:
SolydX Sid
Debian Sid OpenBox
Arch Linux OpenBox
CrunchBang Testing

wayne
Posts: 178
Joined: 25 Feb 2013 14:58

Re: Forgot password? cannot use password? How to reset

Postby wayne » 08 Mar 2013 01:25

cwwgateway wrote:Wayne, thank you for writing this, and I'm sorry for taking so long to test this :oops: . On SolydK 64-bit, there were two differences from the instructions (which I think apply to all editions). The first is once you select recovery mode in grub, you have to press "e" to get the pop-up window. The other was in step 8, I think the command is:

Code: Select all

passwd your_login_name
The difference being passwd vs password.

Hi cww,
thanks for your proof read. :)
actually the same for SolydX32. :mrgreen: , one missing step, one typo.. sorry.
i have edited for clarity and correct typo.

cwwgateway
Posts: 1215
Joined: 23 Feb 2013 19:14

Re: Forgot password? cannot use password? How to reset

Postby cwwgateway » 08 Mar 2013 01:40

wayne wrote:
cwwgateway wrote:Wayne, thank you for writing this, and I'm sorry for taking so long to test this :oops: . On SolydK 64-bit, there were two differences from the instructions (which I think apply to all editions). The first is once you select recovery mode in grub, you have to press "e" to get the pop-up window. The other was in step 8, I think the command is:

Code: Select all

passwd your_login_name
The difference being passwd vs password.

Hi cww,
thanks for your proof read. :)
actually the same for SolydX32. :mrgreen: , one missing step, one typo.. sorry.
i have edited for clarity and correct typo.
I'm glad it helped :D . Hopefully your tutorial will be very helpful to people; it seems to be a common problem. Thanks again for writing it :mrgreen: .
Dell XPS 15:
SolydX Debian Testing
SolydK Testing
SolydX Testing
Debian Sid Xfce
Debian Wheezy KDE
Arch Gnome Shell

Gateway:
SolydX Sid
Debian Sid OpenBox
Arch Linux OpenBox
CrunchBang Testing

jimisbell
Posts: 64
Joined: 02 Nov 2013 20:44
Location: South Coast

Re: Forgot password? cannot use password? How to reset

Postby jimisbell » 08 Sep 2014 23:18

Is there a similar way to change your username?


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 4 guests