From the course: Linux CentOS 7: User and Group Management

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

User password data file

User password data file - Linux Tutorial

From the course: Linux CentOS 7: User and Group Management

Start my 1-month free trial

User password data file

- [Narrator] With the shadow suite installed, all included passwords are stored in the /etc/shadow file which is readable by nobody but root. This keeps prying eyes from seeing the password hashes and attempting to crack them. The shadow file contains password information for user accounts as well as account aging information. Let's take a look at the /etc/shadow file using the less command. Type in sudo less /etc/shadow. Because this file isn't readable by anybody but root, we have to elevate privileges to view it. Hit Enter and type in your password. The /etc/shadow file has nine colon-delimited columns. Let's take a look at each column. The first column is the username and must match the /etc/passwd file. The second column is the hashed password or characters to indicate that the password hasn't been set. On a Redhat-based system, there will be one or more exclamation points if the password hasn't been set or if the account is locked. For accounts with passwords, there will be a…

Contents