Clearing a Linux Password

If you have direct access to the Linux filesystem (like a mounted SD card for example), it’s really easy to clear the password from the system. Simply take a look at the /etc/passwd file. You’ll see a line for every user on the system in a syntax like this:


To clear the password, simply delete anything in the field. By the way, if you see an ‘x’ character in this field, you will also need to clear the field in the /etc/shadow file.

For example:

#change this:
#to this:

There are also ways to clear/change the password from GRUB or LILO if you don’t have direct access to the filesystem, but I’ll let ya’ll search for that one!

…and that’s what I learned today!

Feel free to donate if this post prevented any headaches! Another way to show your appreciation is to take a gander at these relative ads that you may be interested in:

There's 0 Comment So Far

Share your thoughts, leave a comment!