[root@mailserver authlib]# groupmod
Usage: groupmod [options] GROUP
Options:
-g, --gid GID change the group ID to GID
-h, --help display this help message and exit
-n, --new-name NEW_GROUP change the name to NEW_GROUP
-o, --non-unique allow to use a duplicate (non-unique) GID
-p, --password PASSWORD change the password to this (encrypted)
PASSWORD
实例:
[root@mailserver authlib]# id postfix
uid=2525(postfix) gid=89(postfix) 组=89(postfix),12(mail)
[root@mailserver authlib]# groupmod -g 2525 postfix
[root@mailserver authlib]# id postfix
uid=2525(postfix) gid=2525(postfix) 组=2525(postfix),12(mail)