Managing groups

Managing groups

Managing groups

Add a new group called newname:

/usr/sbin/groupadd -G nnn newname RET

Add members to this group: Open the file /etc/group, and add a line that lools the same as the line for the groups cvs and ling.

Check group membership: Be root, and give the command

groups trond

to check which groups trond belongs to.

Group attribute for files

chown trond -R directory/
chgrp ling -R directory

to change to owner trond and group owner ling.