HPUX version 11i
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. Ignore the warning regarding IP V6
c)
Networking and Communications > Network Information Service
d) A message indicating that the domain name is not set will be displayed. Respond with to accept the message. Then using the key move to the “Actions” tab and press . Ensure “Set domain name” is selected and press

e) Enter the NIS domainname of
“domain.local” as shown below. Then move to the
“OK” button using the tab key and press to accept.

f) A screen displaying the domain name will now be displayed. Using the key move to the “Actions” tab and press . Move to the “Enable Client” item and press 
g) SAM will
display a warning suggesting that you need to enter a “+”
sign in the passwd and group files . Press to accept the “OK” action
Nameservice switch configuration
HP/UX 11i
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 IBM NAS 300 server. This must be mounted on the /export/home/source directory
a)
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
c) Add an entry into the file /etc/fstab as shown below
mainfileserver.domain.local:/source /export/home/source nfs rw,suid,soft 0 0
d)
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
e) 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
e) Create the /export/home/hg1output mountpoint using the command “mkdir –p /export/home/hg1output”
f) 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
g)
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
h) 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
j) Create the /export/home/unixcfg mountpoint using the command “mkdir –p /export/home/unixcfg”
k) Add an entry into the file /etc/fstab as shown below
mainfileserver.domain.local:/unixcfg /export/home/unixcfg nfs rw,suid,soft 0 0
l)
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 (SCO 5.05)
Back to menu