HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
g
getacl(1) getacl(1)
permissions actually granted.
EXAMPLES
Given file filea, with an ACL six entries long, the command
$ getacl filea
would print:
# file: filea
# owner: fletcher
# group: us
user::rwx
user:spy:---
user:archer:rw-
group::r--
class:rw-
other:---
Given file filea, with an ACL six entries long, after the command chmod 700 filea
was issued, the
command
$ getacl filea
would print:
# file: filea
# owner: fletcher
# group: us
user::rwx
user:spy:---
user:archer:rw- #effective:---
group::r-- #effective:---
class:---
other:---
Given directory fileb, with an ACL containing default entries, the command
$ getacl -d fileb
would print:
# file: fileb
# owner: fletcher
# group: us
default:user::rwx
default:user:spy:---
default:group::r--
default:other:---
Given directory fileb, the command
$ getacl fileb
would print:
# file: fileb
# owner: fletcher
# group: us
user::rwx
user:spy:---
user:archer:rw-
group::r--
other:---
default:user::rwx
default:user:spy:---
default:group::r--
default:other:---
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 1−−337