Wednesday, March 15, 2006

 

Wednesday

1. Setting up NIS on Fedora Core4

When i set the server up i swore that I selected server tools which included the ypserv package. However, after teh server was running, i serached and serached for ypinit and could not find it. So I hearde that these fancy new linuxes use somethign called YUM to manage software. So I do a yum search NIS command which yields a ton of results since "NIS" is part of "administrator" so I had to use VI to find teh pertainent info.I discovered that the package was called ypserv.i386. So i ran yum install ypserv.i386 It did some fancy things and a few seconds later it said it was installed. So i do a search on ypinit and find it in /usr/lib/yp /ypinit.


first i updated ypservers on the NIS master with name of the new slave.

ypcat -k ypservers > /tmp/ypservers
vi /tmp/ypservers
cd /var/yp
cat /tmp/ypservers makedbm - /var/yp/`domainname`/ypservers


then on the new server
set my domainname in /etc/defaultdomain
domainname dlogics.com
domainname > /etc/defaultdomain

then i turned ypbind on

service ypbind start

then i edited /etc/nsswitch.conf and added nis to the list


Then i ran

/usr/lib/yp/ypinit -s helios

then i started the ypserv

service ypserv start

then i created a new user on the master and ran make to propagate the map. then i went to one of my unix clients and edited /etc/yp.conf and changed the nis server to hera, the new server. tehn i restarted the ypbin service and logged out. then logged back in as the test user i just created. Viola! it seems to work.

2. i learned this last week but thought i would put it in here to remind myself.. regular blogs are time consuming !!


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?