add more than a group to permission of files

Hello everybody,

I would like to know, how can I set permission for different groups in FreeBSD?

here I show a example:
Code:
----rwx---  1 root  armix  9 Apr  4 14:43 hello.txt
but here I can't add or see other groups!
 
Instead of using ACLs, I would join all the members of the groups for which I want to set permissions into one supergroup, and then use this group for the respective permissions. For example, as user root:

pw groupshow groupA
groupA:*:1001:userA,userB,userC

pw groupshow groupB
groupB:*:1002:userD,userE,userF

pw groupshow groupC
groupC:*:1003:userG,userH,userI

pw groupadd -n groupABC -g 2001 -M userA,userB,userC,userD,userE,userF,userG,userH,userI
chgrp groupABC hello.txt
 
Back
Top