Chris Reeves wrote:
On Wed, Apr 11, 2001 at 11:33:00PM -0700, Tim Hanson wrote:
I think I set up yp server and client up correctly. I haven't hooked up any other computers to this server yet.
I followed the instructions in /usr/share/doc/ypserv. I edited rc.config and added the entries, set the client to localhost, ran "make" in /var/yp, edited crontab. Then I inserted the line "usr/sbin/rpc.yppasswdd" in /etc/init.d/boot.local.
On boot yppasswdd came up as a failed service. After login, the daemon ran fine. Login was normal.
Where should I load rpc.yppasswdd? Also, when I figure that one out, how do I test the server and client?
Well, you certainly shouldn't do it in /etc/init.d/boot.local ;-) The boot.local script is executed before any of the network services are started (like the portmapper).
First of all, have a check through /etc/rc.config and related files (or have a look in YaST) to see if you can see a variable related to starting the NIS server (since SuSE usually have this sort of thing all set up for you). If you can't find anything, then your best bet is to write your own init script and put it in /etc/init.d. You'll then need to link this into the rcx.d directories for all runlevel which are meant to start up with network services (3 and 5, for example). You can use the skeleton script in /etc/init.d as a template, and I think it has instructions on making the appropriate links as well. Make sure you link it in after the portmapper has started (i.e. somewhere towards the end).
I think I might have it nailed. I got into the /etc/init.d/yppasswdd script and did a series of echo statements throughout the file, to find out where it was failing. About a third of the way down I saw this portion: #This is as was written. Good luck #finding this file! #YPPASSWDD_BIN=/usr/sbin/YPPASSWDD #Here's what I changed, which I believe is what was intended: YPPASSWDD_BIN=/usr/sbin/rpc.yppasswdd test -x $YPPASSWDD_BIN || exit 5 Looks like I found a little bug. So naturally _after_ I fixed it, on the way to reporting it to SuSE, I checked to see if somebody else has run into this: http://sdb.suse.de/sdb/en/html/71ypppasswdd.html So I learned two things today. :-) -- Ours is a world of nuclear giants and ethical infants. -- General Omar N. Bradley