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.
cancel
Showing results for 
Search instead for 
Did you mean: 

setup NIS

SOLVED
Go to solution
Marcel Boon
Trusted Contributor

setup NIS

Hi,

I just setup NIS for controle users, I have only one server and a few workstations.
there is no change of my /etc/nsswitch.conf.
Do I have to do it manually ?

Marcel
See the man pages
5 REPLIES
Berlene Herren
Honored Contributor

Re: setup NIS

Yes, Marcel, you will need to modify it. If you are using 11.0, then you can copy one from /etc.

nsswitch.compat<< An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.

nsswitch.hp_defaults An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files and dns

Take a look at each one and decide what you need, then copy it to /etc/nsswitch.conf, i.e.,

#cp /etc/nsswitch.hp_defaults /etc/nsswitch.conf.

Berlene

If you are using 10.20, take a look at the examples found in /usr/examples/nsswitch.

http://www.mindspring.com/~bkherren/dobes/index.htm
Marcel Boon
Trusted Contributor

Re: setup NIS

Hi Berlene,

On this system I use 10.20. I looked in the
example files, but they don't use "passwd"
I expected : "passwd nis [NOTFOUND=continue files".
Isn't it nessesary ?

Marcel
See the man pages
Pedro Sousa
Honored Contributor
Solution

Re: setup NIS

Hi Marcel!
I have lots of clusters with NIS, and I didn't cheange any of nsswitch.conf files for that to work. I did change that just for DNS use.
so, the only thing you nee to do, if you only want it to work with users, is to change the file /etc/rc.config.d/namesrvs with the following parameters in the NIS Server:
NIS_MASTER_SERVER=1
NIS_SLAVE_SERVER=0
NIS_CLIENT=1
NIS_DOMAIN=

on Nis clients:
NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=1
NIS_CLIENT=1
NIS_DOMAIN=

check this:
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90043/B1031-90043_top.html&con=/hpux/onlinedocs/B1031-90043/00/00/16-con.html&toc=/hpux/onlinedocs/B1031-90043/00/00/16-toc.html&searchterms=NIS&queryid=20010418-070057
good luck.
Berlene Herren
Honored Contributor

Re: setup NIS

This should not be necessary, Marcel, as long as your /etc/passwd file has "+" at the end.

Regards,
Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Marcel Boon
Trusted Contributor

Re: setup NIS

thanks....
See the man pages