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 account data file

User account data file - Linux Tutorial

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

Start my 1-month free trial

User account data file

- [Narrator] The file in Linux that stores user account details is etc/passwd. Let's view this file by opening a terminal, by going to Applications, Favorites, Terminal. I'm going to make my terminal fullscreen, and bump my font size. Now type in less /etc/passwd and hit Enter. We can see that we have one line for user account. The etc password file has seven colon-delimited columns. Let's take a look at each one. The first column is the user name. User names in Linux are case-sensitive. The administrator's username is root, and should be the first line of the /etc/passwd file. The second column shows the encoded password, or if we're using the Shadow Suite, there will be an x here, telling us that the password is encoded, and stored in the etc/shadow file, instead of the etc/passwd file. The etc/passwd file is world-readable, so before we started using the Shadow Suite, the encoded passwords were visible to anyone. In the past, this wasn't a problem, as the passwords were encoded…

Contents