HP-UX System Administrator's Guide: Configuration Management
Next, create an account for Tom on the file server, flserver. See “Configuring Users
and Groups with HP SMH” (page 49).
Then, perform the following procedure:
1. On the file server, share Tom’s home directory and the directory where he does
his work:
a. Add an entry in the /etc/dfs/dfstab file to share Tom’s home directory:
share -F nfs -o access=appservr:dept27:wsj6700 /home/tom
If the directory is already shared, simply add Tom’s system to the access list.
b. Add an entry to the /etc/dfs/dfstab file to share the /work directory:
share -F nfs -o access=dept27:wsj6700 /work
This contains the files and directories Tom will share with other members of
his project team.
c. Force the server to re-read /etc/dfs/dfstab and activate the new shares
for /work and /home:
# /usr/sbin/shareall
2. On the application server, share the Emacs directories that Tom needs:
a. Add entries to the /etc/dfs/dfstab file:
share -F nfs -o access=dept27:wsj6700 /usr/local/share/emacs
share -F nfs -o access=dept27:wsj6700 /opt/hp/gnu/bin700/emacs
b. Share the directories for Emacs:
# /usr/sbin/shareall
3. On Tom’s login server, dept27, do the following:
a. Create Tom’s account. See “Configuring Users and Groups with HP SMH”
(page 49). If Tom’s login has already been set up on another system (for
example on flserver), you may want to cut the line from flserver’s /etc/
passwd file and paste it into the /etc/passwd file on dept27 to ensure that
Tom’s account has the same user name and user ID on both systems.
b. Create empty directories for the file systems to be mounted.
# mkdir /home/tom
# mkdir /work
# mkdir /usr/local/share/emacs
# mkdir /opt/hp/gnu/bin700/emacs
c. Add entries to /etc/fstab.
flserver:/home/tom /home/tom nfs rw,suid 0 0
flserver:/work /work nfs rw,suid 0 0
appserver:/usr/share/emacs/ /usr/share/emacs nfs rw,suid 0 0
appserver:/opt/hp/gnu/bin700/emacs nfs rw,suid 0 0
d. Mount all the directories:
# mount -a
Adding a User to Several Systems: A Case Study 71