Operating System - HP-UX
1832646 Members
2817 Online
110043 Solutions
New Discussion

ACL on a shared directory using setacl command

 
hp_user_1
Regular Advisor

ACL on a shared directory using setacl command

Hi,
Can someone let me know if there is a problem with the following. When I run it, I get: "aclsort call failed for "abcd" where "abcd" is a directory on which I am trying to set default ACL.

"setacl -s u::7,g::0,o:0,c:0,d:u::7,d:g::0,d:o:0,d:c:7 abcd"

Thanks
hp_user

3 REPLIES 3
Ermin Borovac
Honored Contributor

Re: ACL on a shared directory using setacl command

From setacl man page ...

If an ACL contains no additional default:user or additional
default:group entries and a default:group entry is specified for the
object owning group, then a default:class entry must also be
specified, and the permissions in the default:group entry for the
object owning group and the permissions for the default:class entry
must be the same.

You have specified default:group entry for the object owning group (d:g::0), so you must specify default:class entry with the same permissions (d:c:0 instead of d:c:7).
Asghar Ghori
Occasional Advisor

Re: ACL on a shared directory using setacl command

Thanks for the answer. Actually this is what I want to achieve:

"jim, terry and david, belong to differnt grous and are part of a project team. They need to share /opt/prj1 directory. They want to have rwx permissions for themselves on the files and subdirectories that are created under /opt/prj1. The directory should be owned by mike, who is a supervisor, and requires read permissions only. Other system users also require read-only permissions."

How do I set this up with the setacl command.
Thanks
hp_user_1
Regular Advisor

Re: ACL on a shared directory using setacl command

Can someone reply please.....

Points will be awarded....