Open System Services NFS Management and Operations Guide

Considerations
Consider the following when adding a server:
Mount point
When you define the root fileset for OSS NFS, the mount point is /. All other filesets to be
made available through OSS NFS (for example, /lab/chem) must be under the root server
and the root server must be started before other filesets can be added.
Access by the super ID
If the server associated with this fileset sets ROOT-USER-OK to TRUE, a client user mapped to
the super ID can be given root access on the fileset. Whether to set the ROOT-USER-OK to
TRUE is a security decision you need to make based on the needs of the clients.
Sample OSS NFS Fileset Configurations
These topics provide examples of:
“Setting Up a Read-Only Fileset” (page 46).
“Setting Up an OSS NFS Project Fileset” (page 47)
“Setting Up an OSS NFS Home Directory Fileset” (page 48)
Setting Up a Read-Only Fileset
1. Configure an empty read-write fileset.
If the directory /usr does not already exist in the OSS file system, establish the mount point:
OSH -p /bin/mkdir /usr
OSH -p /bin/chmod 555 /usr
2. If these directories do not already exist in the OSS file system, add the subordinate directories
/usr/bin for executable files and /usr/man for reference pages:
OSH -p /bin/mkdir /usr/bin
OSH -p /bin/mkdir /usr/man
OSH -p /bin/chmod 555 /usr/*
These directories do not appear in the default declarations of the OSS PATH and MANPATH
environment variables. You or your users must add them as appropriate.
3. Load the fileset with files using commands in your local OSS shell.
4. Add the fileset for /usr by adding the server for read-only access:
ASSUME $ZNFS
ADD SERVER USR,&
MNTPOINT "/usr",&
PROGRAM $SYSTEM.ZOSSNFS.NFSSVRHP,&
PROCESS $USR0,&
STYPE OSS,&
CPU 3,&
PRI 190,&
READ-ONLY TRUE
NOTE: NFS client/server interactions work most efficiently for read-only OSS filesets when
the OSS filesets are mounted read-only on the NFS client systems (using the mount command
with the read only (ro or r option) instead of setting the read-only attribute in either the OSS
NFS server configuration or OSS fileset configuration. NFS client attempts to write to a read-only
OSS fileset are reported immediately to the NFS client application.
5. Start the server:
START SERVER USR
46 Installing and Configuring OSS NFS