The following example shows how to mount Tom’s
home directory and work directory from the file server, flserver, and mount Emacs from the application server, appserver.
Before beginning, make sure Tom’s login
name has a user ID that is unique across the systems he is going to
use. (Your network administrator may have a program to ensure the
uniqueness of user ID numbers.)
Next, create an account for Tom on the file server, flserver. See “Configuring Users and Groups with HP SMH”.
Then, perform the following procedure:
On
the file server, share Tom’s home directory and the directory
where he does his work:
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.
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.
Force
the server to re-read /etc/dfs/dfstab and activate
the new shares for /work and /home:
On
the application server, share the Emacs directories that Tom needs:
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
|
Share
the directories for Emacs:
On
Tom’s login server, dept27, do the following:
Create
Tom’s account. See “Configuring Users and Groups with HP SMH”. 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.
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 |
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
|
Mount
all the directories:
See “Sharing an HP-UX Directory” for more information.