LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-12-2009, 07:39 AM   #1
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Rep: Reputation: 15
Question NIS: error message coming after executing "/usr/lib/yp/ypinit -m"


Hi
A list of error message comes when ypinit build nis database. Please have a look below for more detail:-

[root@linuxserver1 ~]# /usr/lib/yp/ypinit -m

At this point, we have to construct a list of the hosts which will run NIS
servers. linuxserver1.cheemas.com is in the list of NIS server hosts.

Please continue to add
the names for the other hosts, one per line. When you are done with the
list, type a <control D>.
next host to add: linuxserver1.cheemas.com
next host to add:
The current list of NIS servers looks like this:

linuxserver1.cheemas.com

Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/cheemas.com/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/cheemas.com'
Updating passwd.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

passwd.byuid...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

group.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

group.bygid...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

hosts.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

hosts.byaddr...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

rpc.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

rpc.bynumber...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

services.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

services.byservicename...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

netid.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

protocols.bynumber...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

protocols.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating

mail.aliases...
failed to send 'clear' to local ypserv: RPC: Unknown hostgmake[1]:

Leaving directory `/var/yp/cheemas.com'

linuxserver1.cheemas.com has been set up as a NIS master server.


Why it is coming please advise. Ironically I am able to login on another linux machine with nis user id. Note: I am implementing this on RHEL 5.

Thanks
Charanjit Singh

Last edited by cj_cheema; 08-12-2009 at 07:41 AM.
 
Old 08-13-2009, 12:03 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 658

Rep: Reputation: 66
The problem arise when your machine failed to identify itself by 'localhost' name. just make sure you define back the machine as localhost and everything should work fine.

thnks

Last edited by vishesh; 08-13-2009 at 12:18 AM.
 
Old 08-14-2009, 09:02 AM   #3
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Original Poster
Rep: Reputation: 15
Lightbulb Thanks Problem solved.

Quote:
Originally Posted by vishesh View Post
The problem arise when your machine failed to identify itself by 'localhost' name. just make sure you define back the machine as localhost and everything should work fine.

thnks
Thanks pal you find the root cause I modified the host file entry mistakenly. The problem was ip 127.0.0.1 was resolving my host name so I changed the host name to localhost.localdomain localhost and problem has been resolved. Thanks once agin for your assistance...

Regards
Charanjit Singh
 
  


Reply

Tags
nis, rhel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
script using "/usr/bin/cat error" produces "cannot open" in cron Dcrusoe Programming 6 07-22-2009 03:30 PM
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 06:33 AM
Accidental deletion of "/usr/X11R6//lib/browser_plugins/" folder on FreeBSD. int80 *BSD 2 01-02-2009 10:19 AM
repeated message (tty1): ASSERT: "i <= nodes" in /usr/lib/qt-3.1.2/include/qvaluelist megahard Linux - General 4 01-17-2006 10:59 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration