Linux under the Group Management Command detailed
Groupadd command, add Group command
Format: groupadd [options] Group name
Option:-G: Specify GID
-R: Add System Group
Example: groupadd-g Willow Create Willow Group and GID is 1000
2.groupmod command, modify Group command
Format: groupmod [options] Group name
Option:-G: Modify GID
-N: Modify Group name
Example: groupmod-g 1100 Willow Modify Willow Group GID to 1100
Groupmod-n Willow.xia Willow Modify the willow group named Willow.xia
3.groupdel command, delete Group command
Format: Groupdel Group name
4.GPASSWD command, modify Group Password command
Format: gpasswd [options] Group name
Option:-A adds user to group
-D Delete a user in a group
-R Delete Group password
-M allows multiple users to join the group, separated by commas, noting that users in the original group will be removed
Example: gpasswd-m user1,user2,user3 Hello add User1,user2,user3 to the Hell Group
5.NEWGRP command, toggle staging Group
Note Switch groups, you must enter a group password,
Exit using the Exit command
6.chage, modify user account attribute time command
-D: Most recent modification time
-M: Minimum period of use
-M: Maximum lifespan
-E: Expiration time
-I: Inactive time
-W: Warning time
This article is from the "Willow_xia" blog, make sure to keep this source http://willow.blog.51cto.com/6574604/1762340
Linux under the Group Management Command detailed