Groupadd Syntax Format:
Name
groupadd– Creating a new group
Grammar
Groupadd [-G gid [-o]] [-R] [-F] Group
For example:
Groupadd-g 1563 HQ
groupmod– Modifying a group
Grammar
Groupmod [-G gid [-o]] [-N group_name] Group
Groupmod parameter discussion:
Type description
-G to modify the user group ID, the new GID must be guaranteed to be unique in the system
-N Name the abbreviation of the word, meaning to change the name of the user group
Groupmod Examples and instructions:
Example 1: Change the System user group you just established HQ, change its user group ID to 234, while changing the user group name to CHONGPIG3
[Email protected] ~]# groupmod-g 234-n CHONGPIG3 HQ
Two, add change user
1. Change the user UID value
Usermod-u 10182 Huima
2. Change the UID GID value
Usermod-u 10182-g 1563 Huima
3. Add users and specify UID and GID values
Useradd huima-u 10182-g 1563
passwd Huima
Add users under Linux