This brief tutorial shows students and new users how to easily reset a forgotten user password on Ubuntu 17.04 / 17.10. We’re all humans and we tend to forgot important things at times. If you do forgot your Ubuntu password, this post should help you recover it.
Forgetting your server password may prevent you from logging on physically or remotely. There are tools that may be able to help you recover the password. However, the method below is the quickest and easiest way to do it.
When you’re ready, please continue below
To reset a user or root password, turn on the server and press the Esc key on your keyboard to display Ubuntu boot menu. On the menu, select *Advanced options for Ubuntu
Next, select *Ubuntu, with Linux.x.x-generic (recovery mode)
Next, scroll down on the list and select root as shown on the screen below, then press the Enter key
Next, run the commands below to mount the shell with read / write permissions
mount -rw -o remount /
After running the above commands, the shell should be remounted with read/write permissions. Now you can run limited sets of commends, including password change commands for user and root.
To reset a user password, run the commands below, replacing username with the real account name or the user.
sudo passwd username
When you run the above commands, you’ll be prompted to create and confirm a password for the account name you mentioned. create it and you’re done.
Next, type reboot to restart the server and begin using the new password you just created.
This is how one resets a user or root password on Ubuntu servers and desktop.
This post shows students and new users how to reset a forgotten user password on Ubuntu servers and desktops. It should apply to almost all version of Ubuntu. Follow the steps above to recover your missing password.
Congratulations! You’ve just learned how to reset or recover forgotten user passwords on Ubuntu
You may also like the post below:
- Running Ubuntu 17.10 VMware Guest Machines
- Installing Webmin on Ubuntu 17.04 / 17.10
- Install VSFTPD with SSL/TLS on Ubuntu 17. 04 / 17.10
- Creating and Editing a File via SSH on Ubuntu 17.04 / 17.10
- Changing WordPress Admin Email and Password
- Install WordPress with Nginx and Memcached Support on Ubuntu 17.04 / 17.10
- Setup Self-Signed SSL/TLS Certificates on Ubuntu 17.04 / 17.10
- Daily Ubuntu Tips – Change Computer Name
- Setting Up WordPress on Ubuntu – Preparation