I've put together an article about running an NIS master from a NetInfo master.
This may be of use to people who want to create simple NAS type devices using Linux which need to share configuration information with OS X machines without the overhead of LDAP.
[robg adds: The host machine linked above was quite slow when I loaded it this morning (perhaps due to the US -> UK connection?), so I've recreated the text of the article in the main body of the hint, as well as hosted the download file that's mentioned in the article (both with g_nix's permission, of course!). Read the rest of the hint to see the entire article...]Why run NIS on OS X
In a mainly OS X environment, where directory information is stored in NetInfo, introducing a single Linux machine brings a raft of headaches as far as authentication information is concerned. One has to either move to LDAP based directory information, or manually synchronise the account databases between the systems. Running an NIS master on the OS X netinfo master make Linux (and other UNIX) integration trivial.
How to run NIS on OS X
Download this Makefile (right click or control-click and Save Target / Download Link, etc), and replace the existing /var -> yp -> Makefile.yp with it. Remember to backup the existing Makefile.main if you wish to return to the defaults.
Open the Makefile.main in your favourite editor. At the top are the configurable options - MINUID, MINGID and NETINFODOMAIN. Configure these as required:
- MINUID: this is the minimum Userid to include in the passwd map. A sensible value for this is the first non system UID; usually 100 or 500 on OS X.
- MINGID: this is the minimum Group id to include in the group map. This defaults to 80, which is the OS X admin group, so that sudo can be set up on the linux machines to mimic the OS X behaivour. If you don't want this, set it to 100.
- NETINFODOMAIN: this is the NetInfo domain to extract information from.
Known Problems
The automounter maps don't yet work. This is because I am still figuring out how to convert OS X automount info to amd style mountmaps. In the meantime, all nfs exported home directories need to be manually mounted on the Linux system. There is no timestamp information, so the maps will be regenerated every time make is run in the /var/yp/domainname. This isn't a problem with small nis maps.

