c

chacl(1)

chacl(1)

chacl -r '(@.%,rw-)' - test

Delete from ®le myfile the speci®c access rights, if any, for user 165 in group 13. Note that this is different from adding an ACL entry that restricts access for that user and group. The user's resulting access rights depend on the entries remaining in the ACL. The command also deletes all entries for user jpc that have a read bit turned on (the asterisk can be used as a wildcard in the ACL pattern for user, group, or access mode):

chacl -d '165.13, jpc.*+r' myfile

Copy the ACL from oldfile to slow/hare and fast/tortoise.

chacl -f oldfile slow/hare fast/tortoise

Delete the optional ACL entries, if any, on the ®le open as standard input.

chacl -z -

Deny all access to all ®les in the current directory whose names start with a, b, or c:

chacl -Z [a-c]*

Incorporate the optional ACL entries of a ®le (fun.stuff) into the base ACL entries:

chacl -F fun.stuff

WARNINGS

An ACL string cannot contain more than 16 unique entries, even though converting @ symbols to user or group names and combining redundant entries might result in fewer than 16 entries for some ®les.

DEPENDENCIES

chacl will fail when the target ®le resides on a ®le system which does not support ACLs.

NFS

Only the -Foption is supported on remote ®les.

AUTHOR

chacl was developed by HP.

SEE ALSO

chmod(1), getaccess(1), lsacl(1), getacl(2), setacl(2), acl(5), glossary(9).

Section 172

− 3 −

HP-UX Release 11i: December 2000