1. groupadd new group, the group name can not be longer than 32 bytes
groupadd -create a new group
Syntax: groupadd [option] group name
-g, --gid GID specified GID
-r, --system create a system group
-o, --non-unique This option allows you to add a non-unique GID group
[root@python ~]# groupadd admin
[root@python ~]# groupadd -g 4433 aytula
2. groupdel delete group
groupdel [option] group name
3. groupmod Modify Group Properties
语法:groupmod [option] 组名 -modify a group defintion on the system
-g, --gid GID
-n, --new-name NEW_GROUP group to rename groupmod -n newname oldname
-o, --non-unique
4. gpasswd Change Password (see also by the configuration file / etc / group)
[root @ python ~] # gpasswd [ group name] # Change Password
New Password:
Re-enter the new password:
/etc/group
Group name: Group Password: group GID: group member list
/etc/gshadow
Group name: Group password: Managers Group: the group user list
Group password in the salvo
-A, --administrators ADMIN, disposed within the group administrator (gpasswd -A user04)
-a, group administrators can add a user to their own group. (Gpasswd -a user name group name)
-d, group administrators to delete a user from their own group, (gpasswd -d user name group name)
-r, to remove group password.
-R, restrict user login reorganization, in addition to the group members. (This does not allow the user to switch to another group)
-M, --members USER, ... set the list of members of GROUP. Before the new designated group members are who will remove the specified. (Gpasswd -M user01, user02, user03 group name)
Group use the password:
If the current user is shared by a group user01 user01. If you want to become a temporary member of other groups. What should I do?
[root @ python ~] # newgrp another group name
Password: 'Enter the group password in this group. User01 then again when the file was created, belongs to the group file is this other group of