Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (s) setacl(1)
If you specify no permissions for an entry (---), the user ID or group ID specied
in the entry is denied access to the le.
The entries need not be in order. The setacl command sorts them before apply-
ing them to the le.
-m Adds one or more new ACL entries to the le, or changes one or more existing
ACL entries on the le. If an entry already exists for a specied user ID or group
ID, the specied permissions replace the current permissions. If an entry does
not exist for the specied user ID or group ID, an entry is created.
-d Deletes one or more existing ACL entries from the le. You cannot delete entries
for the le owner, the owning group, class,orother. Deleting an entry does not
necessarily have the same effect as removing all permissions from the entry.
Specically, deleting an entry for a specic user causes the permissions for that
user to be determined by the other entry (or other group entries, if the user is in
those groups).
-f Sets the ACL for the specied le using the ACL entries contained in the le
named acl_le. The constraints for entries in the acl_le are the same as the con-
straints for entries you specify using the -s ag. The character # in acl_le indi-
cates a comment. All characters, starting with the #, until the end of the line, are
ignored. If the acl_le has been created as the output of the getacl command,
any effective permissions, which are written with a preceding #, are also ignored.
Using the setacl command can result in changes to the le permission bits. When you change
the user ACL entry for the le owner, the le owner permission bits are modied. When you
change the other ACL entry, the le other permission bits are modied. When you set or
modify additional user ACL entries, any group ACL entries, or both, the class permission bits are
modied to reect the maximum permissions allowed by the additional user entries and all the
group entries.
If an ACL contains no additional user or additional group entries, the permissions in the group
entry for the object-owning group and the class entry must be the same. Therefore, if specifying
the -d ag results in no additional user entries and no additional group entries, the class entry
permissions are set to the permissions of the owning-group entry, whether or not the -n ag is
specied.
A directory can contain default ACL entries. If a le is created in a directory that contains
default ACL entries, the le inherits those default ACL entries as described in the acl(5) refer-
ence page.
If an ACL contains no additional default:user or additional default:group entries, and you
specify a default:group entry for the owning group, you must also specify a default:class entry
that has the same permissions as the default:group entry.
EXAMPLES
To add one ACL entry to le filea, giving user archer read permission only, use this command:
setacl -m user:archer:r-- filea
If an entry for user archer already exists, this command sets the permissions in that entry to r--.
To replace the entire ACL for le filea and add entries:
Allowing read/write access for users archer and fletcher
For the le owner allowing all access
527188-007 Hewlett-Packard Company 813