Can one directory be owned by two groups?

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.

Replay

A directory (like everything else) can only have one group (the "ACL_GROUP_OBJ" in ACL terminology). But via ACL (setfacl) you can define permissions for other groups, too. Even (via default ACLs) for newly created objects in the directory.

Category: permissions Time: 2014-05-04 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.320 (s). 12 q(s)