Where Is the Password File in Linux?
Contents

The /etc/passwd is the password file that stores each user account. The /etc/shadow file stores contain the password hash information for the user account and optional aging information. The /etc/group file is a text file that defines the groups on the system. There is one entry per line.

Where is the passwd file located?

The /etc/passwd file stores essential information, which required during login. In other words, it stores user account information. The /etc/passwd is a plain text file.

How are Linux passwords hashed?

In Linux distributions login passwords are commonly hashed and stored in the /etc/shadow file using the MD5 algorithm. … Alternatively, SHA-2 consists of four additional hash functions with digests that are 224, 256, 384, and 512 bits.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest