• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 701
  • Last Modified:

RPC error possibly ypserv fault?

Hi

I'm running RedHat6.0 and have installed:

ypbind-3.3-20
yp-tools-2.3.1
ypserv-1.3.6.91-1

On running ypcat passwd nothing happens (no error messages, no list of users).  The domainname is set correctly, and ypwhich returns the name of the ypserver.  NIS client users are unable to logon.  rpcinfo -u localhost ypserv gives:

rpcinfo: RPC: Timed Out
program 100004 version 1 is not available
rpcinfo: RPC: Timed Out
program 100004 version 2 is not available

but strangely, rpcinfo -u <hostname> ypserv gives:
program 100004 version 1 ready and waiting
program 100004 version 2 ready and waiting

The rpc.yppasswdd, ypbind (master), ypbind (slave) and ypserv daemons are all running.

Any ideas?
Many thanks
Roy
0
doyston
Asked:
doyston
1 Solution
 
edvinkvCommented:
see /etc/nsswitch.conf file. It should be properly configured to contact nis
if required to get users password.

read man nsswitch.conf

heres a sample file.



#
# /etc/nsswitch.nis:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd:     files nis
group:       nis  files

# consult /etc "files" only if nis is down.
hosts:      dns nis files
networks:   nis files
protocols:  nis files
rpc:        nis files
ethers:     nis files
netmasks:   nis files
bootparams: nis files
publickey:  nis files

netgroup:   nis

automount:  files nis
aliases:    files nis

# for efficient getservbyname() avoid nis
services:   files nis
sendmailvars:   files
0
 
doystonAuthor Commented:
Many thanks for your help!
Problem solved
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now