Solved

RPC error possibly ypserv fault?

Posted on 2001-07-02
2
673 Views
Last Modified: 2007-12-19
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
Comment
Question by:doyston
2 Comments
 
LVL 1

Accepted Solution

by:
edvinkv earned 100 total points
ID: 6248077
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
 

Author Comment

by:doyston
ID: 6248607
Many thanks for your help!
Problem solved
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now