Set up an administrator for the group.

Set up an administrator for the group.

You can set up an administrator for an existing group separately from root (privileged user).
The administrator set here can add and remove members, set and remove group passwords, etc. for the group.

To set up an administrator, add the option “-A” to the gpasswd command and specify the user name and the group name to be managed as arguments.
Multiple users can be specified by separating them with a comma “,”.

[root@Lion ~]# cat /etc/group | grep newgr  ←Verify that the newgr group exists
newgr:x:600:
[root@Lion ~]#gpasswd -A koro newgr  ←Set koro as the administrator of the newgr group
タイトルとURLをコピーしました