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

User Commands (s) setacl(1)
NAME
setacl - Modies access control lists (ACLs) for les
SYNOPSIS
setacl [ -n ] -f acl_le le ...
setacl [ -n ] { -m | -d } acl_entries [{ -m | -d } acl_entries]... le ...
setacl [ -n ] -s acl_entries le ...
FLAGS
-n Normally, the setacl command recalculates the group class entry to ensure that
permissions specied in the additional ACL entries are actually granted, and the
value specied in the class entry is ignored. If you specify the -n ag, the recal-
culation is not performed, and the value specied in the class entry is used.
-s Sets the ACL for a le. All old ACL entries are removed and replaced with the
newly specied ACL. You must specify exactly one user entry for the owner of
the le, exactly one group entry for the owning group of the le, and exactly one
other entry. If you specify the -n ag, you must specify exactly one class entry
also. You can specify additional user ACL entries and additional group ACL
entries, but these entries must not duplicate user entries with the same user ID or
group entries with the same group ID.
-m Adds or modies the specied ACL entry.
-d Deletes the specied entry from the ACL of the specied le.
-f Sets the ACL entries for le to the entries specied in acl_le.
You must speciy one of the ags -s, -m, -d,or-f. If you specify -s or -f, other ags are invalid.
You can combine the -m and -d ags, and you can specify multiple -m and -d ags.
For a detailed description of the use of these ags, see DESCRIPTION.
DESCRIPTION
For each le specied, the setacl command either:
Replaces the entire ACL.
Adds, modies, or deletes the specied ACL entries, including default entries for direc-
tories.
Only a user with a user ID equal to the super ID or le owner, or with a user ID or group
afliation qualifying for membership in the Safeguard SECURITY-OSS-ADMINISTRATOR
group can use the setacl command to change the le access permissions for a le.
For the -m and -s ags, acl_entries are one or more comma-separated ACL entries selected from
the following list. For the -f ag, acl_le must contain ACL entries, one to a line, selected from
the same list. You can specify default ACL entries for directories only. Brackets denote optional
characters. Items formatted as a variable denote elds for you to enter. For example, u:uid:perm
becomes u:james:rwx. Choices, of which exactly one must be selected, are separated by verti-
cal bars.
u[ser]::operm|perm
u[ser]:uid:operm|perm
g[roup]::operm|perm
g[roup]:gid:operm|perm
c[lass]:operm|perm
o[ther]:operm|perm
d[efault]:u[ser]::operm|perm
527188-007 Hewlett-Packard Company 811