15
Jan
Posted by Derek@TheDailyLinux in Tips and Tricks » Add Comment »
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:
<username>:<password>:<UID>:<GID>:<user_id_info>:<home_dir>:<command/shell>
To clear the password, simply delete anything in the
For example:
#change this: root:$1$TeCMjrna$1lmHjj.1E9NAAW2am.c7./:0:0:root:/root:/bin/bash #to this: root::0:0:root:/root:/bin/bash
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:
Here are some similar posts that you may be interested in:
There's 0 Comment So Far
Share your thoughts, leave a comment!