1836962 Members
2538 Online
110111 Solutions
New Discussion

NIS setup question

 
SOLVED
Go to solution
Jayson Hurd_2
Advisor

NIS setup question

I have two Linux NIS servers running and a few Linux clients connecting and using successfully. I am trying to tie an HP-UX server in but getting errors. I went into SAM and gave it the name of the client, but it complains something about putting an X in the passwd & group files and then remains as 'disabled'. Not sure how to set this up properly... This is HP-UX 11.11 and 11.23.
Most things worth having don't come easily.
7 REPLIES 7
Bharat Katkar
Honored Contributor

Re: NIS setup question

You can try setting NIS client as follows:

1. edit /etc/rc.config.d/namesvrs

set NIS_CLIENT=1,NIS_DOMAIN=domainname

2. cp /etc/nsswitch.nis /etc/nsswitch.conf
edit as per your requirement (it may work as it is)

3. execute /sbin/init.d/nis.client start

Try logging in with NIS user.

Hope that works.
Regards,
You need to know a lot to actually know how little you know
Jayson Hurd_2
Advisor

Re: NIS setup question

It doesn't seem to want to start. I get this when I start it:

pluto# ./nis.client start
starting NIS CLIENT networking
starting up the rpcbind
rpcbind already started, using pid: 602
domainname APCUNIX
starting up the Network Information Service
starting up the ypbind daemon
FAILURE CODE: 1
Checking NIS binding.
Bound to NIS server using domain APCUNIX.
starting up the keyserv daemon
keyserv already started, using pid: 22004
pluto# ps -ef | grep -i nis
root 23231 21129 2 15:13:58 pts/0 0:00 grep -i nis
pluto# ps -ef | grep -i yp
root 23234 21129 1 15:14:03 pts/0 0:00 grep -i yp


Then if I try ypwhich:

pluto# ypwhich
ypwhich: pluto is not running ypbind
pluto#
Most things worth having don't come easily.
Bharat Katkar
Honored Contributor

Re: NIS setup question

Are you sure Your NIS linux server is NIS and not NISplus.
Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: NIS setup question

I doubt about ybbind, It may be using rpcbind instead.
Regards,
You need to know a lot to actually know how little you know
Sanjay_6
Honored Contributor
Bharat Katkar
Honored Contributor

Re: NIS setup question

Cross Check these parameters in /etc/rc.config.d/namesvrs file with respect to your NIS server:

NIS_CLIENT
NIS_DOMAIN
WAIT_FOR_NIS_SERVER
MAX_NISCHECKS
YPBIND_OPTIONS
KEYSERV_OPTIONS
YPSET_ADDR

All the best.
Regards,
You need to know a lot to actually know how little you know
Sundar_7
Honored Contributor

Re: NIS setup question

I dont have a clue on how NIS clients work in Linux but I believe you can mention the server name to connect to with Linux NIS client.

in HP-UX,by default ypbind tries to bind with ypserv using broadcast. and if ur NIS client and NIS server are not in the same subnet then you got make couple of changes to the /etc/rc.config.d/namesvrs

Try tis

NIS_CLIENT=1
NIS_DOMAIN=APCUNIX
YPBIND_OPTIONS="-ypset"
YPSET_ADDR=""

/sbin/init.d/nis.client start

See if this helps
Learn What to do ,How to do and more importantly When to do ?