Open System Services NFS Management and Operations Guide

PROCESS $PROJ1,&
STYPE OSS,&
CPU 5,&
PRI 190
4. Start the server:
START SERVER PROJ
5. Export the fileset:
ADD EXPORT /project
Setting Up an OSS NFS Home Directory Fileset
This topic describes the configuration of a home directory fileset.
Considerations
Consider these points when configuring a home directory fileset:
All clients should have read and execute access to the home directory.
A client should own his or her subdirectory below the home directory.
Example
1. Add a directory and a server for the fileset /home:
OSH -p /bin/mkdir /home
OSH -p /bin/chmod 755 /home
2. Add and start the fileset mount point /home:
ASSUME $ZNFS
ADD SERVER HOME,&
MNTPOINT "/home",&
PROGRAM $SYSTEM.ZOSSNFS.NFSSVRHP,&
PROCESS $HOME,&
STYPE OSS,&
CPU 5,&
PRI 190
START SERVER HOME
3. Register all users who are to have a home directory on the server:
ADD USER ken , USERID 401, GROUPID 40,&
COMMENT "Kennan Becks",&
ALIAS OSS PUBS.KENNAN
ADD USER ann , USERID 501, GROUPID 50,&
COMMENT "Ann Hamilton",&
ALIAS OSS PUBS.ANN
4. Define a NETGROUP object for all client workstations, giving access to only the registered
users:
ADD NETGROUP $ZNFS.HOME , (sun4, ann, inc.com),&
(next, ken, inc.com)
5. From a TACL prompt, add a work directory for each registered user:
OSH -p /bin/mkdir /home/ken
OSH -p /bin/chmod 700 /home/ken
OSH -p /bin/chown ken /home/ken
OSH -p /bin/mkdir /home/ann
OSH -p /bin/chmod 700 /home/ann
OSH -p /bin/chown ann /home/ann
6. Export the fileset:
ADD EXPORT /home, ACCESS home
48 Installing and Configuring OSS NFS