Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

RPC error possibly ypserv fault?

Posted on 2001-07-02
2
686 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

791 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