506 votes

Reset the password in Ubuntu / Linux Bash in Windows

Run bash and make a note of your Linux username (this need not match your Windows username), see How can I find out my user name? Close Bash on Ubuntu if it is running (or the next command will fail). ...
Tmu's user avatar
  • 5,177
147 votes

Reset the password in Ubuntu / Linux Bash in Windows

Microsoft has a good help page on this: WSL User documentation. In Windows PowerShell (Super+X, i) you can log in to the Ubuntu root account with wsl --user root Then change the password as you ...
Nobody's user avatar
  • 1,830
74 votes

Reset the password in Ubuntu / Linux Bash in Windows

Important This answer is (a) for the older WSL1 only, (b) is outdated as it references paths that are no longer used by WSL1, even, and (c) most importantly, can cause filesystem corruption, per ...
Vladimir Jirasek's user avatar
38 votes

Resetting forgotten phpmyadmin password

You don't actually need to reset your username and password, if you can see them. In your terminal window, type: sudo -H gedit /etc/dbconfig-common/phpmyadmin.conf This will open your phpmyadmin ...
lordparthurnaax's user avatar
28 votes

Reset the password in Ubuntu / Linux Bash in Windows

Edit This no longer works if you have a store-installed distribution of WSL. To add to Tmu's answer, here's a Powershell script (gist) that automates the process (including automatically detecting ...
Richard Szalay's user avatar
9 votes

Resetting forgotten phpmyadmin password

There is a workaround on Debian (Ubuntu, Mint, etc.) where there is a second admin account automatically generated by the system called debian-sys-maint You can see (and should not change) its ...
Petr Kosvanec's user avatar
9 votes

I forgot my default keyring password, how do I get in to recover/change it?

rm /home/$USER/.local/share/keyrings/login.keyring will remove the login keyring and ask for a new password. Or to be a bit safer with a backup: cd /home/$USER/.local/share/keyrings/ cp login.keyring ...
Rinzwind's user avatar
  • 299k
8 votes

How Do I Change a Forgotten User Password Without Booting?

No, that's not possible as that would defeat the purpose of a password-protected super-user account. Boot recovery mode blindly I recommend that you first try to boot to recover mode “blindly”, i. e. ...
David Foerster's user avatar
7 votes

Installed crypted ubuntu on full hd and forget password of crypt and root

With great security comes great responsibility. :-) So, if you encrypted a partition and forgot the password, and set up no other way to decrypt the partition, there is no way to recover the files ...
habs's user avatar
  • 245
6 votes

Reset the password in Ubuntu / Linux Bash in Windows

I needed to reset my password also in my Windows 10, I has WLS 1 1- Check your linux/ubuntu name, listing the folder: %userprofile%\AppData\Local\Microsoft\WindowsApps In my case I found ...
Jorgeee's user avatar
  • 293
6 votes

How to get access to Terminal and Password

No characters being displayed when you enter your password in a shell or TTY is perfectly normal. You can enter your password and press Enter in order to login.
BulletBob's user avatar
  • 1,770
5 votes

Authentication token manipulation error

This error is coming from PAM (Pluggable Authentication Module) which says the module was unable to obtain the new authentication token (check auth.log for more details about this error). This is ...
kenorb's user avatar
  • 10.3k
5 votes

Reset User Password on Ubuntu Terminal in Windows 10 Environment

This was really tricky when I've faced this situation myself and solved it eventually. First Start your "Ubuntu" and type cat /etc/passwd/ and note the number UID and exit the terminal. Like below in ...
Mandy's user avatar
  • 51
4 votes
Accepted

I have tried grub booting to reset my password but it won't work, did I do something wrong?

The official wiki: https://wiki.ubuntu.com/RecoveryMode I tried this with a wireless keyboard and it did not work. My guess is that I would have to connect a non-wireless one so you might have that ...
jpezz's user avatar
  • 1,120
4 votes

How to recover the root password on ubuntu server

Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server. As soon as the boot process ...
Saqib Ahmed's user avatar
3 votes

How do I reset a lost administrative password?

For me, on Ubuntu 16.04 VM installed in VirtualBox, when I boot into (with shift held before booting the VM) the root prompt, I always get Give root password for maintenance (or type Control-D to ...
Fangxing's user avatar
  • 271
3 votes

Renamed home folder, now I can't log in

You'll have to use a LiveDVD/USB to fix this. If you have another computer, download a copy of Ubuntu and burn it to your media of choice. Boot from that LiveMedia on the broken computer. Don't choose ...
TheWanderer's user avatar
  • 19.4k
3 votes

Reset User Password on Ubuntu Terminal in Windows 10 Environment

Open the command prompt, type either ubuntu config --default-user root or lxrun /setdefaultuser root. Hit Enter. Next, open the Linux Bash shell and it will log you as root without asking a password. ...
B_Elwell's user avatar
3 votes

Accidentally set password without encrypting

Unfortunately you cannot recover the password. usermod has a poor description of this command as the password isn't encrypted, but hashed and salted. The intention it's impractical to recover the ...
Hadog's user avatar
  • 696
3 votes
Accepted

My user was deleted from sudo group

To add your username back to the sudo group, please follow the steps below: Reboot your machine and hold the Shift key as soon as you pass the BIOS logo to access the GRUB boot menu. You might need ...
Raffa's user avatar
  • 31.9k
3 votes

How to get access to Terminal and Password

Switch to tty as you have done: Ctrl+Alt+F3 Input your login: root, user or whatever your user's name is and hit Enter Input your password. Password's input in that TTY is not displayed: there're no ...
Gryu's user avatar
  • 7,549
2 votes
Accepted

Renamed home folder, now I can't log in

The usage of a live CD may not be necessary. The following was not tested, but should work. Try to switch to text-only mode in your login promt by Ctrl-Alt-F1 and try to login. After the correct ...
Frank Förster's user avatar
2 votes

How do I reset a lost administrative password?

This is what worked for me. **PROCEED only if all the following step are familiar and know what happens in each step.** Boot using live USB sudo mount /dev/sdb1 /mnt sudo nano -B /mnt/etc/shadow ...
Anand Rockzz's user avatar
2 votes

How to back up my Ubuntu data when I forget my encrypted filesystem password?

It is completely impossible to recover encrypted files if you forget your password. Unlike the password to an account, which can be reset, if you forget the password to an encrypted filesystem, the ...
Dev's user avatar
  • 692
2 votes

I'm locked out of my main account, its suddenly become unreadable, and the super user password is no longer working

It is possible that you machine was hacked. If so, I'd suggest: Disconnect it from the internet Recover root password using the answers here Remove the pen-drive Restart the machine Boot into your ...
Yaron's user avatar
  • 13.1k
2 votes

Bypass Ubuntu Encryption

There's one useful workaround in some cases. If you have unencrypted swap, there's a fair chance that the passphrase has been written to swap at some stage, especially if you've used hibernate. I ...
vidarlo's user avatar
  • 22.6k
2 votes

Bypass Ubuntu Encryption

"bruteforce-luks" can be used to crack Luks encrypted volumes. 2 methods... try all the possible passwords given a charset try all the passwords in a file All you need to do is create a file with ...
Rinzwind's user avatar
  • 299k
2 votes

Recover/change encryption password

Backup and Restore Decrypted Partitions: Warning this a bit technical I'm putting together some scripts that will automate most of this, but if you'd rather not wait, I've tested the steps below. ...
b_laoshi's user avatar
  • 4,650
2 votes

Can only enter as guest ,lost password

Apart from the solution that was pointed out in the comment, I have another way to do the same thing. It is a modification to one of the solution in the How do I reset a lost administrative password? ...
CS13's user avatar
  • 148
2 votes
Accepted

Backup chrome stored password

I just wrote a script that gets passwords from Chromium and decrypts them. Decryption parts taken from https://stackoverflow.com/questions/23153159/decrypting-chromium-cookies https://gist.github.com/...
cagri's user avatar
  • 186

Only top scored, non community-wiki answers of a minimum length are eligible