/etc/passwd user account database Linux

How to view User account database /etc/passwd in Linux
Linux maintain the user account database in /etc/passwd directory. It will provide one-line information about every user on the system. /etc/passwd has the permission 644 these permission provide non-root user they will see the information but they don’t have any privilege to add the data to that file.
The file has seven fields
Student:x:500:500:studentwebsite:/home/student:/bin/bash
First filed: student
It is student it is user named id
Second field: X
X refers to the shadow password
Third filed: 500
It is user id (when you add new user the user id it is star with 500)
Fourth Field: 500
Group id
Fifth Field:studentwebsite
It is full name of the specified user
Six Field:/home/student
User home directory
Seventh field:/bin/bash
It is executed by login that is often a shell /bin/bash is the final command executed by login


/etc/passwd user account database Linux

Related post