Files behind Users and Groups
There are four main user administration files −
/etc/passwd − Keeps the user account and password information. This file holds the majority of information about accounts on the Unix system.
/etc/shadow − Holds the encrypted password of the corresponding account. Not all the systems support this file.
/etc/group − This file contains the group information for each account.
/etc/login.defs - Users default definitions
Check all the above files using the cat command.
The following lists out commands that are available on majority of Unix systems to create and manage accounts and groups −
Command & Description
1 useradd - Adds accounts to the system
2 usermod - Modifies account attributes
3 userdel - Deletes accounts from the system
4 groupadd - Adds groups to the system
5 groupmod - Modifies group attributes
6 groupdel - Removes groups from the system