groupmod - Modify group

Overview SYNOPSIS

groupmod [-g gid [-o]] [-n group_name ] group

Description DESCRIPTION

groupmod command reference you specified on the command line to modify part of the system account files. The following are optional parameters groupmod.

-g the gid
Group ID value. Must have a unique ID value, unless with -o option. Digital can not be negative. Default is the minimum of not less than 99 and successive increases. 0 to 99 is reserved for system account traditional use. If there is a file with the old group ID, and this is exactly the time you add the same old group ID, so you have to manually change what group ID of these files.
-n group_name
Change the group name.

FILES file

/etc/group - group information
/etc/gshadow - secure group information 

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11082818.html