User Administration

There are three types of accounts on a Unix system:

Root account: This is also called superuser and would have complete and unfettered control of the system. A superuser can run any commands without any restriction. This user should be assumed as a system administrator.

System accounts: System accounts are those needed for the operation of system-specific components for example mail accounts and the sshd accounts. These accounts are usually needed for some specific function on your system, and any modifications to them could adversely affect the system.

User accounts: User accounts provide interactive access to the system for users and groups of users. General users are typically assigned to these accounts and usually have limited access to critical system files and directories.

Unix supports a concept of Group Account which logically groups a number of accounts. Every account would be a part of any group account. Unix groups plays important role in handling file permissions and process management.

Managing Users and Groups:
There are three main user administration files:

/etc/passwd: Keeps 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 system support this file.

/etc/group: This file contains the group information for each account.

/etc/gshadow: This file contains secure group account information.