Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting up a NIS slave server?

Status
Not open for further replies.

hasrin

MIS
Jan 18, 2002
40
GB
hi,
i've got a NIS master running solaris and plan to setup a NIS slave running redhat linux. when i type the command below... te error occured.. pls help


[root@NISslave yp]# /usr/lib/yp/ypinit -s NISmaster
We will need a few minutes to copy the data from NISmaster.
Transferring ypservers...
YPXFR: RPC: Program not registered

ypxfr: RPC failure talking to server
Transferring hosts.byname...
YPXFR: RPC: Program not registered
 
I belive you first have to bind to one of the server
/etc/init.d/ypbind start
then
ypinit -s yp_server_name

Check that you have all necessary rpc running
# ps -ef |grep rpc
rpc 573 1 0 Sep18 ? 00:00:29 portmap
rpcuser 602 1 0 Sep18 ? 00:00:00 rpc.statd
root 995 1 0 Sep18 ? 00:00:00 rpc.rquotad
root 1000 1 0 Sep18 ? 00:00:02 rpc.mountd
root 1019 1018 0 Sep18 ? 00:00:00 [rpciod]

Patel
 
hi,
still struggling with this problem.... i start the ypbind and try to run the NIS slave.. then its complaint about ypxfrd is not running .. then i start the services ... its still complaint its not running....

Transferring hosts.byname...
Trying ypxfrd ... not running

Transferring hosts.byaddr...
Trying ypxfrd ... not running

Transferring passwd.byuid...
Trying ypxfrd ... not running


....

ps -ef | grep rpc
rpc 591 1 0 12:29 ? 00:00:00 portmap
rpcuser 619 1 0 12:29 ? 00:00:00 rpc.statd
root 1420 1 0 12:33 ? 00:00:00 rpc.ypxfrd
root 1501 1 0 12:33 ? 00:00:00 rpc.yppasswdd
root 1557 1265 0 12:35 pts/1 00:00:00 grep rpc
 
OK Don't worry about that message.
type
#domainname
xyz
check directory /var/yp/xyz (if you have files in this directory then you are set to go)

What is your /etc/yp.conf file. It should look like

domain vdxyz server 10.25.17.81 #his is the ip of master

#ypbind (should return name of 10.25.17.81 )

Once you load maps and your system is set as secondary server you can change 10.25.?.? ip to your current system name.

Make sure you start this services in run level 3

#chkconfig --list ypbind
#chkconfig --list ypserv
If they are not on on runlevel 3 then
#chkconfig --level 3 ypbind on
#chkconfig --level 3 ypserv on

Patel
 
Hi... i'm not really follow what you've said here.. anyway.. this is what i've done...

>>OK Don't worry about that message.
>>type
>>#domainname
>>xyz
>>check directory /var/yp/xyz (if you have files in this >>directory then you are set to go)

I've check it.. it's all there ...

>>What is your /etc/yp.conf file. It should look like
>>domain vdxyz server 10.25.17.81 #his is the ip of master

is it correct if i put it like this??

domain xyz.co.uk server 111.111.111.111

>>#ypbind (should return name of 10.25.17.81 )

i tried this... nothing came out..

>>Once you load maps and your system is set as secondary >>server you can change 10.25.?.? ip to your current system >>name.

don't really know what to do...?? :(

>>Make sure you start this services in run level 3
>>#chkconfig --list ypbind
>>#chkconfig --list ypserv
>>If they are not on on runlevel 3 then
>>#chkconfig --level 3 ypbind on
>>#chkconfig --level 3 ypserv on

this part.. it's all start at level 3.. done it...

>>Patel

thanks for your kind help..
 
Hi Hasrin.
NIS domain and DNS domain are two different animal.

For example I have nis domain name veritas-nis and DNS domain veritas.com

So when I type domainname it returns me veritas-nis and if I type nslookup then it goes look in veritas.com

SO
domain xyz server 10.25.17.81
xyz is nis domain. and IP is nis server IP.

Do you know what is your nis domainname?
type domainname on master server. You must put that in place of xyz.

Patel
 
Hi,
thanks for your help ... its seem the NIS slave is working but some error occur when i try to change the password on the machine that use map from new NIS slave server

machine1/home/dummy % ypwhich
NIS-slave
machine1/home/dummy % passwd
Changing password for dummy
(current) UNIX password:
New password:
Retype new password:
RPC: Server can't decode arguments
The password has not been changed on NIS-master.
passwd: Failed preliminary check by password service

any help? thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top