Password

From LQWiki
Jump to navigation Jump to search

A password is simply an access code or a pass code. Volumes have been written about the dangers of password reuse and of using weak passwords. Statistically, the leading cause of computers being hacked is password reuse and/or the use of weak passwords.

Forgotten password

To reset a forgotten password, boot your computer from a life-CD like Knoppix. Edit /etc/shadow, you will find lines like the following:

myuser:$3b$07$aoeiGNiC21aWwcZAjlAnzeFnm6hQlYsnywV1GG5LfXSI3aN//PkkW:13577:0:99999:7:::

here, "myuser" is the username. Behind it is a colon and the encrypted password. Reset the password by removing the complete line. Reboot your computer - your password is empty, you should be able to log in and set it using passwd

See also