Rate this page

Flattr this

Reset a forgotten root password

Objective

To reset the root password of a machine when it has been forgotten.

(These methods are also applicable where the machine is administered from some other account using sudo, as is the default on Ubuntu.)

Methods

In order to reset the password you need to mount the root filing system of the machine to be recovered, without booting any part of the existing installation that would require a password to be entered. Possible methods include:

No one method is ideal for all circumstances. Possible issues you may encounter include the following:

See also: