HP-UX System Administrator's Guide: Security Management HP-UX 11i v3 (B3921-90020, September 2010)

Table Of Contents
even if the underlying data is lost or corrupted. Look for one or more of these other
file problems:
A user, program, or application deleted, overwrote, moved, or truncated the file
or files.
The file system associated with a particular directory when the file was created
might not be mounted to that directory.
A file or files were placed in a directory that now has a file system mounted to it.
The files still exist but are not accessible. Unmount the file system to access the
files.
The file protection or ownership is preventing access. Use the chmod or chown
command to change file permissions.
5.2 Setting Access Control Lists
Access control lists (ACLs) offer a finer degree of file protection than traditional file
access permissions. Use ACLs to allow or restrict file access to individual users unrelated
to the group they belong to. Only the owner of a file, or a user with the appropriate
privileges can create ACLs.
Both the Journaled File System (JFS) and High-Performance File System (HFS) support
ACLs but they use different mechanisms and syntax.
JFS is the HP-UX implementation of the Veritas journaled file system (VxFS). HFS is
the HP-UX version of the UNIX File System (UFS) and is compatible with earlier versions
of HP-UX.
An access control list (ACL) is a set of user, group, and mode entries associated with
a file. The list specifies permissions for all possible user ID and group ID combinations.
Access control lists give you a more precise way to control access to files than you have
with traditional UNIX file permissions. ACLs enable you to grant or restrict file access
in terms of individual users and specific groups, in addition to the traditional control.
Both HFS and JFS file systems support ACLs, but they use different mechanisms and
use different syntax.
NOTE: HFS is now deprecated. It will be removed from the operating system in a
future release.
HP-UX supports two separate JFS products: the basic JFS product, which is included
in the operating system, and the optional advanced product, OnLineJFS, which is
installed separately. Both JFS products support ACLs.
For more information, see setacl(1), getacl(1), aclv(5), chacl(1), lsacl(1), and acl(5).
5.3 Using HFS ACLs
You set HFS ACL permissions with the chacl command and display them with the
lsacl command. See Example 5-1.
5.2 Setting Access Control Lists 91