[clue-tech] very close on NIS I think
Roger Frank
rfrank at rfrank.net
Fri Jun 2 19:29:43 MDT 2000
Grant, Matt and others... I think I am very close to getting NIS
to work. If you can, take a look at what I've done. These steps
are from the Cork (Ireland) Linux User's Group and are supposed
to be correct for RedHat 6.x (I am using Mandrake 7.0, a derivative).
Here is my log:
NIS server will be machine medusa
NIS client is machine shadow
First, on the server:
1. get all the yp* files from the CD (Mandrake 7.0)
yp-tools-2.3-3mdk.i586.rpm
ypbind-3.3-23mdk.i586.rpm
ypserv-1.3.9-2mdk.i586.rpm
2. rpm -Uvh yp*
all install cleanly
3. domainname erin
I picked an arbitrary name
`domainname` then returns erin as it should
4. /etc/rc.d/init.d/ypinit -m
it finds the yp server as medusa.sunset
^D to signal end of servers
it fails when trying to update all the default entries
5. edit /var/yp/Makefile
remove the targets for netgrp, mail, publickey and group
(I would have liked to keep group in there, but the awk
command in the script for group.byname and group.bygid
both fail during the ypinit.
6. /etc/rc.d/init.d/ypinit -m
this time it runs without error
7. /etc/rc.d/init.d/ypserv start
gives the [OK] response
8. /etc/rc.d/init.d/ypbind start
Binding to the NIS domain ... [OK]
Listening for an NIS domain server: medusa.sunset
9. just to make sure, ypcat passwd
output is as expected, a password list
Now on the client machine
1. domainname erin
same (arbitrary) domain name
2. get the same three yp* files from the distro CD
rpm -Uvh yp*
3. now edit /etc/yp.conf to add the line:
domain erin server medusa.sunset
note, I also tried:
domain erin medusa
domain erin server medusa
domain erin 192.168.109.5
domain erin server 192.168.109.5
domain erin broadcast
4. make sure it's there: ping medusa.sunset
64 bytes from 192.168.109.5: icmp_seq=0 ttl=255 time=0.4 ms
5. /etc/rc.d/init.d/ypbind start
[root at shadow /etc]# /etc/rc.d/init.d/ypbind start
Binding to the NIS domain...
Listening for an NIS domain server: ..........
can't yp_bind: Reason: Domain not bound
6. make sure it didn't connect: ypwhich
can't yp_bind: Reason: Domain not bound
So that's where I am. It feels like I'm pretty close to getting
this to connect. Any ideas at all? (PS I leave for summer
vacation tomorow, so if you don't respond tonight, Friday,
then I'll be looking for your suggestions later in June.)
--
Roger Frank
Mathematics/Computer Science Teacher
Ponderosa High School, Parker, Colorado
http://www.rfrank.net
More information about the clue-tech
mailing list