written 7.8 years ago by | • modified 7.8 years ago |
Mumbai University > Information Technology > Sem 5 > Open Source Technology
Marks: 10M
Year: Dec 2015
written 7.8 years ago by | • modified 7.8 years ago |
Mumbai University > Information Technology > Sem 5 > Open Source Technology
Marks: 10M
Year: Dec 2015
written 7.8 years ago by |
Role of /etc/passwd file:
/etc/passwd file stores essential information, which is required during login i.e. user account information. /etc/passwd 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. It should have general read permission as many utilities, like ls use it to map user IDs to user names, but write access only for the superuser/root account.
Understanding fields in /etc/passwd
The /etc/passwd contains one entry per line for each user (or user account) of the system. All fields are separated by a colon (:) symbol. Total seven fields as follows. Generally, passwd file entry looks as follows:
Role of /etc/shadow file:
The /etc/shadow file stores actual password in encrypted format for user’s account with additional properties related to user password i.e. it stores secure user account information. All fields are separated by a colon (:) symbol. It contains one entry per line for each user listed in /etc/passwd file. Generally, shadow file entry looks as follows:
Role of /etc/group file:
/etc/group is a text file which defines the groups to which users belong under Linux and UNIX operating system. Under Unix / Linux multiple users can be categorized into groups. Unix file system permissions are organized into three classes, user, group, and others. The use of groups allows additional abilities to be delegated in an organized fashion, such as access to disks, printers, and other peripherals. This method, amongst others, also enables the Superuser to delegate some administrative tasks to normal users.
/etc/group file
There is one entry per line, and each line has the following format (all fields are separated by a colon (:):
Where,