Netinfo is gone as of Leopard (October 2007). Good riddance.
Mac OS X, though Unix based, departs from Unix flat files in a number of areas and uses a database instead. In some cases, the system respects the information in the flat files, and in others it doesn't (the ordinary files are there in case you boot up single user mode).
This schizophrenic personality can be a little confusing, apparently even to the developers. For example, even in Panther, /etc/hosts contains this note:
# Host Database # # Note that this file is consulted when the system is running in single-user # mode. At other times this information is handled by lookupd. By default, # lookupd gets information from NetInfo, so this file will not be consulted # unless you have changed lookupd's configuration.
It's not true. Out of the box, you can put addresses and names in /etc/hosts and use them. But /etc/passwd isn't handled that way, and in fact most things that you would expect to use text files for need to be done with NetInfo.
I have very mixed feelings about the wisdom of this.
Got something to add? Send me email.
More Articles by Tony Lawrence © 2011-07-06 Tony Lawrence
If Linux can skate by the patent and copyright issues, its growth in the corporate world will continue no matter what business dislikes about the GPL. (Tony Lawrence)