Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
setacl(1) OSS Shell and Utilities Reference Manual
• For the file group allowing read access only
• For others disallowing all access
use this command:
setacl -s user::rwx,user:archer:rw-,user:fletcher:rw-,group::r--,other:--- filea
After this command is executed, the file permission bits are set to -rwxrw----. Although the file-
owning group has read permission only, the maximum permissions available to all additional
user ACL entries and all group ACL entries are read and write, because the two additional user
entries both specify these permissions.
To set an ACL for filea using a file, sample.acl, that contains ACL entries, enter this command:
setacl -f sample.acl filea
Edit the file sample.acl to contain:
user::rwx
user:archer:rw-
user:fletcher:rw-
class:rw-
group::r--
other:---
RELATED INFORMATION
Commands: getacl(1).
Functions: acl(2), aclsort(3), creat(2), creat64(2), getgrid(3), getpwuid(3), mkdir(2), open(2),
open64(2).
Miscellaneous topics: acl(5).
STANDARDS CONFORMANCE
This command is an HP extension to the XPG4 Version 2 specification.
8−14 Hewlett-Packard Company 527188-021