First, the user account
1, Super User: With the highest privileges in the operating system, to manage and maintain the operating system. Root user.
2, ordinary users: created by the root user, in the host directory with full permissions.
3, program users: added by the application, maintenance of an application to run.
Second, group account
In a Linux system, multiple users are combined to form a group called a user group. Each user account must belong to at least one group, which is called the user's base group or private group. If the user is also included in other groups, this group can be called an additional group or a public group. Setting permissions on a group account will apply to each account in the group.
Third, common user management commands:
1. Useradd: Add user
Syntax: useradd [options] User name
Options:
-U: Specifies the UID number of the user
-D: Specify the user's host directory location
-e: Specify user's account expiration event
-G: Specify the user's base group name
-G: Specify the user's additional group name
-M: Do not create a user directory
-S: Specify the shell for user login
2. Userdel: Delete User
3. passwd: Set User password
4. Groupadd: Add group account
5. Groupdel: Delete group account
6. GPASSWD: Add Delete Group member
Linux Learning Notes (v) User management commands