How to Reset Forgotten Password in Linux

So you forgot your Linux/Ubuntu/Unix password? No worries, this article will guide you how to reset your Linux password in minutes.

Steps

Boot into recovery mode.

While your computer is booting, from the boot menu select the “recovery mode” option.

  • Press F8 key in case boot menu doesn’t appear.WH.shared.addScrollLoadItem(‘8579ef3bca0796fecfc6374ed4d10900’)

Select the option ‘Drop to root shell prompt’.

After the computer boots in to recovery mode, from the Recovery menu select the option ‘Drop to root shell prompt’

Type the command.

To change the password type the command ‘ and follow the instruction below.

In case of error.

There is a possibility that you may get an ‘Authentication token manipulations error’ as Filesystem state could be ‘Read only’. To fix it, type the following command before the first command. mount -rw -o remount

Leave a Comment