Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

NIS / NFS / Automount

Aslam Ghumra_2
Frequent Advisor

NIS / NFS / Automount

Hi All

I have two hp-ux 11.11 machines which I would like to setup as NIS.

My first machine (GRID1) is a NIS master, NIS client, NFS Server, NFS Client

My second machine (GRID2) is a NFS Server, NFS client, NIS client.

I can log into GRID2 using my credentials as a nis user but it does not present me with the directory which is based on GRID1.

I have tried meddeling with automount but have had no success.

Does anyone have a doc/info as to how to do this ?

Any help much appreciated.


Victor Fridyev
Honored Contributor

Re: NIS / NFS / Automount


Did you edit /etc/nsswitch.conf file ?
If not, edit as following:
passwd: nis
group: nis

or copy /etc/nsswitch.nis with appropriate changes
Entities are not to be multiplied beyond necessity - RTFM
Ralph Grothe
Honored Contributor

Re: NIS / NFS / Automount

If your automounter needs to refer to a master map on a NIS server make sure that your maps in /etc/auto_master don't begin with a slash in order to force automounter to refer to your nsswitch.conf.
Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: NIS / NFS / Automount

Forgot to cite manpage of automounter:

Otherwise the location of the map is determined by the policy of the
name service switch according to the entry for the automounter in
/etc/nsswitch.conf, such as

automount: nis files

Madness, thy name is system administration
Aslam Ghumra_2
Frequent Advisor

Re: NIS / NFS / Automount


Yes I used the nsswitch.conf file.
Do you mean this file on the machine I want to loginto ?

My nsswitch.conf file is :

passwd: files nis
group: files nis
hosts: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: files nis

My auto_master is :
/home /etc/auto_home
/net -hosts -nosuid,soft,rsize=32768,wsize=32768
/- /etc/

My auto_home is auto_home
ghumraak GRID1:/home/ghumraak
reeda GRID1:/home/reeda
huntjb GRID1:/home/huntjb