Can one directory be owned by two groups (RHEL 6.2)?
I have created one directory: mkdir /opt/shared
, then I created two groups: groupadd sales
groupadd marketing
I added manually to each of these groups 21 users, then I changed the ownership
chown root:sales /opt/shared
and chown root:marketing /opt/shared
.
Then I changed the unmask chmod 2775 /opt/shared
The problem is, only group marketing
have permission to rwx
.