创建用户组管理员。
用户组管理员可以管理哪些账号可以加入/移出该
gpasswd [-A user1,user2...] [-M user3,user4...] GroupName
gpasswd [-rR] GroupName
gpasswd [-ad] UserName GroupName
-A
-M
-r
-R
-a
-d
+ useradd test
+ gpasswd -A test admin
+ gpasswd admin
Changing the password for group admin
New Password:
Re-enter new password:
+ grep --color=auto admin /etc/group /etc/gshadow
/etc/group:admin:x:1000:admin
/etc/gshadow:admin:$6$bRg94/IJnZ4LwF$YhPnFzSHSvaT4.FZQNxrTHF8L1dZzW073N7JfPRDrQR2K3yHLq2XY3OYna7SGwUjKawkXme3rGX2Cbz285pEX/:test:admin