NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering an NFS Server
Chapter 2 29
the access privileges of user nobody. Non-root users on all NFS clients
are allowed read/write access to the /var/mail directory, if the HP-UX
permissions on the /var/mail directory allow them read/write access.
/var/mail -root=sage:thyme:basil
The following example exports the private root directory of diskless
client sage. It allows root access to the root user on client sage. All other
users on client sage have read/write access, if they are allowed
read/write access through the regular HP-UX permissions. Users on
other NFS clients have read-only access, if they are allowed read access
through the HP-UX permissions.
/export/private_roots/sage -rw=sage,root=sage
In the following example, any user without a valid user ID who attempts
access to client basil’s private root directory will receive an RPC
authentication error, because anonymous access is denied with the
anon=65535 option. The root user on client basil is allowed root access
to the directory, but the root users on all other machines are treated as
“unknown” and denied access. The non-root users on all NFS clients are
allowed read/write access, if the HP-UX permissions on that directory
allow them read/write access.
/export/private_roots/basil -root=basil,anon=65535
The following example exports the /export/newsletter directory to all
NFS clients. Root users will be given the effective user ID of 200. Other
anonymous users will keep their own user IDs (even though they do not
exist in the NFS server’s passwd database), but they will be given the
access permissions associated with user ID 200. If a root user is allowed
to create a file in this directory, the ls command will show that it is
owned by user ID 200. If an anonymous user with a non-zero user ID (for
example, 840) is allowed to create a file in this directory, the ls command
will show that it is owned by user ID 840.
/export/newsletter -anon=200
The following example exports the /opt/frame directory to all NFS
clients. Non-root users have read/write access (if the regular HP-UX
permissions allow it), and root users are given the access privileges of
user nobody. NFS writes are done asynchronously; that is, when an NFS
client writes data to a mounted directory, the server returns a response
before writing the data to disk. This allows the client to continue
processing without waiting for the write request to complete.
/opt/frame -async