HP-UX Reference (11i v3 07/02) - 5 Miscellaneous Topics (vol 9)

a
aclv(5) aclv(5)
The <sys/aclv.h> header also defines the set of valid values for the
a_type field, as well as the valid
values for the cmd argument to the acl(2) system call.
Header <sys/getaccess.h>
The
<sys/getaccess.h>
header defines constants for use with getaccess(2).
Special parameter values for uid:
UID_EUID use effective user ID
UID_RUID use real user ID
UID_SUID use saved user ID
Special parameter values for ngroups:
NGROUPS_EGID process’s effective group ID
NGROUPS_RGID process’s real group ID
NGROUPS_SGID process’s saved group ID
NGROUPS_SUPP process’s supplementary groups only
NGROUPS_EGID_SUPP process’s effective group ID plus supplementary groups
NGROUPS_RGID_SUPP process’s real group ID plus supplementary groups
NGROUPS_SGID_SUPP process’s saved group ID plus supplementary groups
WARNINGS
ACLs cannot be used to restrict the superusers access.
Most, but not all, supported utilities are able to handle ACLs correctly. However, only the fbackup(1M) and
frecover(1M) file archive utilities handle access control lists properly. When using programs unable to han-
dle ACLs on files with optional ACL entries (such as archive programs ar(1), cpio(1), ftio(1), tar(1), and
dump(1M)), note the Access Control List information included on their respective reference pages to avoid
loss of data.
DEPENDENCIES
NFS
NFS does not support ACLs on remote files. Individual manual entries specify the behavior of various sys-
tem calls, library calls, and commands under these circumstances. Be careful when transferring a file with
optional entries over a network or when manipulating a remote file because optional entries may be silently
deleted.
AUTHOR
The access control list design described here was developed by AT&T.
FILES
<sys/aclv.h> Header file that supports acl(2).
/etc/passwd Defines user names and user and group ID values.
/etc/group Defines group names.
SEE ALSO
chmod(1), cp(1), nd(1), getaccess(1), getacl(1), ln(1), ls(1), mv(1), rm(1), setacl(1), fbackup(1M),
frecover(1M), fsck(1M), fsdb(1M) access(2), acl(2), chmod(2), chown(2), creat(2), getaccess(2), mknod(2),
open(2), stat(2), aclsort(3), cpacl(3), group(4), passwd(4), privgrp(4), acl(5).
HP-UX 11i Version 3: February 2007 5 Hewlett-Packard Company 37