LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2005, 11:17 PM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
nis server issue


hi,

i have setup NIS SERVER. when i try to connect from my another PC with the command service ypbind start. it search for NIS domain and server but it's FAILD.

I m using RHEL3 ES edition.

Here all configration steps which i have done.

after adding NISDOMAIN=NIS-HOME-NETWORK under /etc/sysconfig/network file. and also under /etc/yp.conf file i have setup 'ypserver 127.0.0.1 option.

after that i have run this command.

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

At this point, we have to construct a list of the hosts which will run NIS
servers. mail.netbeez.net 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: mail.netbeez.net
next host to add:
The current list of NIS servers looks like this:

mail.netbeez.net

Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/NIS-HOME-NETWORK/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/NIS-HOME-NETWORK'
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/NIS-HOME-NETWORK'

mail.netbeez.net has been set up as a NIS master server.

Now you can run ypinit -s mail.netbeez.net on all slave server.
[root@mail root]#

Then i have started all require services like ypserv,portmap,yppasswdd.here is the ouput.

[root@mail root]# rpcinfo -p localhost
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 1024 status
100009 1 udp 644 yppasswdd
600100069 1 udp 934 fypxfrd
600100069 1 tcp 936 fypxfrd
100004 2 udp 954 ypserv
100004 1 udp 954 ypserv
100004 2 tcp 957 ypserv
100004 1 tcp 957 ypserv
100007 2 udp 1006 ypbind
100007 1 udp 1006 ypbind
100007 2 tcp 1009 ypbind
100007 1 tcp 1009 ypbind
100011 1 udp 784 rquotad
100011 2 udp 784 rquotad
100011 1 tcp 787 rquotad
100011 2 tcp 787 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 1031 nlockmgr
100021 3 udp 1031 nlockmgr
100021 4 udp 1031 nlockmgr
100021 1 tcp 1034 nlockmgr
100021 3 tcp 1034 nlockmgr
100021 4 tcp 1034 nlockmgr
100005 1 udp 802 mountd
100005 1 tcp 805 mountd
100005 2 udp 802 mountd
100005 2 tcp 805 mountd
100005 3 udp 802 mountd
100005 3 tcp 805 mountd
391002 2 tcp 1042 sgi_fam
[root@mail root]#

Then i have added one user iwth niuser and try following command. it look like wokring nice.

[root@mail root]# ypmatch niuser passwd
niuser:$1$enDDYsIF$kdAO7tdodPqzrnQ6y/iSK/:1025:1025::/home/niuser:/bin/bash
[root@mail root]#


that's all for NIS SERVER i have setup.

now move to client side. ...

i have run 'authconfig' and put NISDOMAIN and NISSERVER name.

domain NIS-HOME-NETWORK server 192.168.100.10

i have verify under /etc/yp.conf.

then i tried to start the service with command 'service ypbind start', it looks for NIS SERVER and get FAILD. also i have started 'portmap service' as what i did on NISSERVER.

i do notwhy it;'s not connect to NIS SERVER. can anyone guide me hoew to slove this issue.

one mor, if i try with ypcat passwd, nothing apprear. so can not able to guess it.

I have restarted portmap service and ypbind,yppasswd services more then 2 times . but still not wokring .

also. i have STOP the FIREWALL on both the PC.[server and client]

please help me to slove this issue, as i m preparing for RHCE exam it IMP for me.

Thank you

-/Hitesh
 
Old 07-21-2005, 06:51 AM   #2
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
Please close this issue. it has been Sloved.

Problem was: I have installed RHEL 3 with LVM parttition, 2 partiton i made under LVM, 1) root / 2) swap.and normal boot partition.


Thank you....

Hitesh
 
  


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
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 server && client issue LinuxRam Linux - Networking 1 11-03-2004 11:14 AM
how to join NIS server (SUN machine) to Linux NIS server? KoRiR Linux - Networking 3 04-28-2004 01:19 PM
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 - Networking

All times are GMT -5. The time now is 08:52 AM.

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