|
Password, Shadow and Group files Description in Linux What is Password file? Passwd file is a text file, that contains a list of the system's accounts, giving for each account some useful information like user ID, group ID, home directory, shell, etc. Often, it also contains the encrypted passwords for each account. It should have general read permission (many utilities, like ls use it to map user IDs to user names), but write access only for the superuser. What is Shadow file? shadow file contains the encrypted password information for user's accounts and optional the password aging information. What is Group file? group file is an ASCII file which defines the groups to which users belong. There is one entry per line, and each line has the format All three files are located in /etc directory and we will see each one this file detailed /etc/passwd There is one entry per line, and each line has the format: Password file format account:password:UID:GID:GECOS:directory:shell
The
See also man page
/etc/shadow
Shadow file format
smithj:Ep6mckrOLChF.:10063:0:99999:7:::
if shadow passwords are being used, the
The password expiry related fields are modified by the
See also /etc/groupThere is one entry per line, and each line has the format:Group file format group_name:passwd:GID:user_listThe
See also |