March 22, 2007

first steps with NIS

netatalk stopped working for me. It has always been a problem child. Yesterday I got NIS runing, and all is good. It took a long time to get it up and running, Much strife, but I did, at last figure it out. Here is how I got it going on my ubuntu box.
  1. First things first. You need the nis package. Setup a domain name, any will do, this is not DNS domain names.
  2. configure /etc/ypserv.conf
  3. secure /etc/ypserv.securenets
  4. run the make file at /var/yp/
  5. run ypserv or ypserv -d for debug mode
  6. test it on a computer configured with the client. Type in ypcat passwd.byname. It should give you a dump of user names, user ID's groups, full names, etc.
If it's not this easy for you let me know. I don't have it fully working, I think it's a problem with ypserv.conf. However, I got my nfs shares showing all the data I want. This will be a multi-part story. More will be released as I learn it myself.

No comments: