How can I reset my forgotten Zorin OS password?
Asked by
MellowCedar27
I installed Zorin OS on my laptop a few months ago and recently started using it again, but I forgot my account password. The laptop logs straight into the desktop because automatic login is enabled, but I still need the password to install games and make system changes. What is the safest way to reset it?
Answers
If youโre already at the desktop, open Terminal and run `passwd`. It will ask for your current password, so this only works if you remember it. You can also try `sudo passwd YOUR_USERNAME`, but sudo will normally require your existing password too.
If you donโt know it, restart the laptop and open the boot menu by holding Shift or pressing Esc during startup. Choose **Advanced options for Zorin OS**, select the recovery-mode entry, and then choose **root**. In the root shell, remount the system as writable with `mount -o remount,rw /`, then reset the account password with `passwd YOUR_USERNAME`. Replace `YOUR_USERNAME` with your actual login name. After setting the new password, run `reboot` and log in normally. This may not work if the drive is encrypted and you also forgot its encryption passphrase.
Reply to this answer
Add your answer
Answers are reviewed before publication.
MellowCedar27: I can get into the desktop automatically, but I donโt know the password needed by Terminal or the software installer. So Iโll try the recovery-mode method rather than `sudo`.