LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-04-2008, 08:26 AM   #1
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Rep: Reputation: 32
Question NIS problem


I am using CentOS5.2 and I have made NIS server

NIS server configuration

"vi /etc/sysconfig/network" I edit NISDOMAIN=rhel.com

then I have restart my computer, after I login again i typed

"nisdomainname" to check domain name it was none, then I give temporary nisdomainname i typed "nisdomainname rhel.com"

Next step I enter into /var/yp/ to configure

"/usr/lib/yp/ypinit -m" to make master server, after this it ask me to add another host i type ctrl+d then "yes" to configure then I found this error below



Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/rhel.com/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/rhel.com'
Updating passwd.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating passwd.byuid...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating group.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating group.bygid...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating hosts.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating hosts.byaddr...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating rpc.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating rpc.bynumber...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating services.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating services.byservicename...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating netid.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating protocols.bynumber...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating protocols.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating mail.aliases...
failed to send 'clear' to local ypserv: RPC: Program not registeredgmake[1]: Leaving directory `/var/yp/rhel.com'

rahil has been set up as a NIS master server.

Now you can run ypinit -s rahil on all slave server.



then I restart ypserv, then again I run same command to configure as master


Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/rhel.com/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/rhel.com'
Updating passwd.byname...
Updating passwd.byuid...
Updating group.byname...
Updating group.bygid...
Updating hosts.byname...
Updating hosts.byaddr...
Updating rpc.byname...
Updating rpc.bynumber...
Updating services.byname...
Updating services.byservicename...
Updating netid.byname...
Updating protocols.bynumber...
Updating protocols.byname...
Updating mail.aliases...
gmake[1]: Leaving directory `/var/yp/rhel.com'

rahil has been set up as a NIS master server.


server configuration was done.




Client configuration


I installed ypbind client side

#authconfig --enablenis --update (to update nis client ) error is below

Turning off allow_ypbind SElinux boolean "Failed"

what should I do wen I saw my yp.conf file was empty only 2 line were written it's below

#generated by /sbin/dhcpclient-script
domain domain.org broadcast


this tow line were there in yp.conf


what should do to solve this error
 
Old 08-04-2008, 01:05 PM   #2
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by rahilmaknojia View Post
I am using CentOS5.2 and I have made NIS server

NIS server configuration

"vi /etc/sysconfig/network" I edit NISDOMAIN=rhel.com

then I have restart my computer, after I login again i typed

"nisdomainname" to check domain name it was none, then I give temporary nisdomainname i typed "nisdomainname rhel.com"

Next step I enter into /var/yp/ to configure

"/usr/lib/yp/ypinit -m" to make master server, after this it ask me to add another host i type ctrl+d then "yes" to configure then I found this error below



Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/rhel.com/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/rhel.com'
Updating passwd.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating passwd.byuid...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating group.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating group.bygid...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating hosts.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating hosts.byaddr...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating rpc.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating rpc.bynumber...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating services.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating services.byservicename...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating netid.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating protocols.bynumber...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating protocols.byname...
failed to send 'clear' to local ypserv: RPC: Program not registeredUpdating mail.aliases...
failed to send 'clear' to local ypserv: RPC: Program not registeredgmake[1]: Leaving directory `/var/yp/rhel.com'

rahil has been set up as a NIS master server.

Now you can run ypinit -s rahil on all slave server.



then I restart ypserv, then again I run same command to configure as master


Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/rhel.com/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/rhel.com'
Updating passwd.byname...
Updating passwd.byuid...
Updating group.byname...
Updating group.bygid...
Updating hosts.byname...
Updating hosts.byaddr...
Updating rpc.byname...
Updating rpc.bynumber...
Updating services.byname...
Updating services.byservicename...
Updating netid.byname...
Updating protocols.bynumber...
Updating protocols.byname...
Updating mail.aliases...
gmake[1]: Leaving directory `/var/yp/rhel.com'

rahil has been set up as a NIS master server.


server configuration was done.




Client configuration


I installed ypbind client side

#authconfig --enablenis --update (to update nis client ) error is below

Turning off allow_ypbind SElinux boolean "Failed"

what should I do wen I saw my yp.conf file was empty only 2 line were written it's below

#generated by /sbin/dhcpclient-script
domain domain.org broadcast


this tow line were there in yp.conf


what should do to solve this error

Okay, IN my 1st post On client site I have written error with authconfig --enablenis --update Yes, I have solve this problem, problem was ypbind was not install properly, I reinstall it again and its done, but new problem is when i type #authconfig --nisdomain=rhel.com --update

it get failed again with same error


Turning off allow_ypbind SElinux boolean "Failed"


I tried so hard it sticks there with same problem
 
Old 08-06-2008, 01:24 PM   #3
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by rahilmaknojia View Post
Okay, IN my 1st post On client site I have written error with authconfig --enablenis --update Yes, I have solve this problem, problem was ypbind was not install properly, I reinstall it again and its done, but new problem is when i type #authconfig --nisdomain=rhel.com --update

it get failed again with same error


Turning off allow_ypbind SElinux boolean "Failed"


I tried so hard it sticks there with same problem


can any one tell me how to solve this problem
 
Old 08-08-2008, 01:15 PM   #4
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by rahilmaknojia View Post
can any one tell me how to solve this problem
My friendz plz check this problem out Im facing this problem since todays
 
  


Reply



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
NIS: NIS running but users not able to log in with NIS credentials outerspace Linux - Server 3 10-17-2007 08:51 AM
SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working fishsponge Linux - Networking 0 11-29-2005 07:43 AM
NIS-Problem - search for NIS-Guru or SuSE Profesional krischeu MEPIS 0 06-16-2005 07:21 AM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Security 2 03-31-2004 12:43 PM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Linux - General 1 03-31-2004 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration