HPUX version 10.20
NIS configuration
a) Log in to the HP/UX system as root and in a terminal window issue the following command “sam”
b) Navigate to the NIS setup screen menu by selecting
Networking and CommunicationsàNetwork Information Service
c) Enter the IP address of the NIS server
d) Press “Enter” to execute the commands
Nameservice switch configuration
HP/UX 10.20 uses a combination of a name service switch
configuration file together with the older method of adding special
entries in the local files such as /etc/passwd to effectively
“append” the NIS data to the local file.
Create an append entry in /etc/passwd
We need to append an entry to the end of the password file to cause
NIS data to be processed as well as data from local files. An example
is shown below

Create an append entry in /etc/group
We also to append an entry to the end of the /etc/group file to
cause NIS data to be processed as well as data from the local group
file. An example is shown below

Set up “/export/home/users” directory NFS mount
Most users’ home directories will be on the IBM NAS server.
Carry out the configuration actions below to enable users to access
their home directories automatically
a) Create the /export/home/users mountpoint using the command
“mkdir /export/home/users” Note that any
“local” contents of the directory
“/export/home/users” will not be visible once this file
system is mounted. Therefore check that
“/export/home/users” contains no data at this time. If it
does take steps to preserve or delete it
b) Add an entry into the file /etc/fstab as shown below
mainfileserver.domain.local:/users /export/home/users nfs rw,suid,soft 0 0
c) Issue the command “mount –a” which should mount
the new file system entry added in the previous step. You can ignore
messages pertaining to filesystems that are already mounted
d) If the directory /home exists create a softlink in this directory pointing to /export/home/users as shown below
#ln –s /export/home/users /home/users
e) You should now be able “cd” to the/home/users directory. The individual user directories should be visible
Set up main file server “/export/home/group1” NFS mount
Several key directories are mapped to the “U” drive on
the NAS server. To enable their use it is necessary to map the NAS
server “U” drive to the “/export/home/hg1” NFS
mounted filesystem as shown below
a) Create the /export/home/hg1 mountpoint using the command “mkdir /export/home/hg1”
b) Add an entry into the file /etc/fstab as shown below
mainfileserver.domain.local:/users /export/home/hg1 nfs rw,suid,soft 0 0
c) Issue the command “mount –a” which should mount
the new file system entry added in the previous step. You can ignore
messages pertaining to filesystems that are already mounted
d) Ensure that if the directory “/export/home/group1”
exists that its contents are either unneeded or saved. It is suggested
that it be renamed to saved_group1
e) Create a soft link for /export/home/group1 and /home/group1 pointing to /export/home/hg1/ using a command of the form shown below
#ln –s /home/hg1/hpux10-20 /home/group1
#ln –s /home/hg1/hpux10-20 /export/home/group1
f) You should now be able “cd” to the /home/group1 directory.
Set up “/export/home/source” directory NFS mount
The source directory is on the main file server. This must be mounted on the /export/home/source directory
e) Create the /export/home/source mountpoint using
the command “mkdir –p /export/home/source” Note that
any “local” contents of the directory
“/export/home/source” will not be visible once this file
system is mounted. Therefore check that
“/export/home/source” contains no data at this time. If it
does take steps to preserve or delete it
g) Add an entry into the file /etc/fstab as shown below
mainfileserver.domain.local:/source /export/home/source nfs rw,suid,soft 0 0
h) Issue the command “mount –a”
which should mount the new file system entry added in the previous
step. You can ignore messages pertaining to filesystems that are
already mounted
i) Create a softlink to point /home/source at /export/home/source as shown below
#ln –s /export/home/source /home/source
Set up “/export/home/qatests” directory NFS mount
The qatests directory is on the main file server. This must be mounted on the /export/home/source directory
a) Create the /export/home/qatests mountpoint using
the command “mkdir –p /export/home/qatests” Note that
any “local” contents of the directory
“/export/home/qatests” will not be visible once this file
system is mounted. Therefore check that
“/export/home/qatests” contains no data at this time. If it
does take steps to preserve or delete it
b) Add an entry into the file /etc/fstab as shown below
mainfileserver.domain.local:/qatests /export/home/qatests nfs rw,soft,bg,intr 0 0
c) Issue the command “mount –a”
which should mount the new file system entry added in the previous
step. You can ignore messages pertaining to filesystems that are
already mounted
d) Create a softlink to point /home/qatests at /export/home/qatests as shown below
#ln –s /export/home/qatests /home/qatests
Set up “/export/home/hg1output” directory NFS mount
The qaoutput directory is on the main file server. This must be mounted on the /export/home/source directory
a) Create the /export/home/hg1output mountpoint using the command “mkdir –p /export/home/hg1output”
b) Add an entry into the file /etc/fstab as shown below
mainfileserver.domain.local:/qaoutput /export/home/hg1output nfs rw,soft,bg,intr 0 0
c) Issue the command “mount –a”
which should mount the new file system entry added in the previous
step. You can ignore messages pertaining to filesystems that are
already mounted
d) Create a soft link for /export/home/group1/output and /home/group1/output pointing to /export/home/hg1output/
using a command of the form shown below. Note to obtain the correct
permissions to create this link it will be necessary to
“su” to the build user as shown below
#su build
$ln –s /export/home/hg1output/hpux10-20 /export/home/group1/output
Set up “/export/home/unixcfg” directory NFS mount
The unixcfg directory area is on the main file server. This must be mounted on the /export/home/unixcfg directory
g) Create the /export/home/unixcfg mountpoint using the command “mkdir –p /export/home/unixcfg”
h) Add an entry into the file /etc/fstab as shown below
mainfileserver.domain.local:/unixcfg /export/home/unixcfg nfs rw,suid,soft 0 0
i) Issue the command “mount
–a” which should mount the new file system entry added in
the previous step. You can ignore messages pertaining to filesystems
that are already mounted
Next (HPUX 11i)
Back to menu