Generating ACLs from Files
A convenient way to create an ACL is to create and edit a text file so that it contains the desired ACL entries, and then generate the ACL from it by using an acl replace
operation.
For example, assume the file std_acl contains the following entries:
mask_obj:crwxid-
user_obj:crwxid-
group_obj:crwx---
other_obj:-r-----
user:lizt:crwx---
group:composers:-r-----
user:bach:crwx---
user:mozart:crwx---
The following acl replace operation adds the entries in std_acl to an ACL named /.../dresden.com/my_filesystem/opus:
dcecp> acl replace /.../dresden.com/my_filesystem/opus -acl [cat std_acl]
The acl replace operation overwrites all ACL entries with the ones from the file std_acl. Regardless of what they were before, the ACLs for opus now look like this:
mask_obj:crwxid-
user_obj:crwxid-
user:lizt:crwx---
user:bach:crwx---
user:mozart:crwx---
group_obj:crwx---
group:composers:-r-----
other_obj:-r-----
|