Baartmans, Hans [[EMAIL PROTECTED]] quoth:
*>I am trying to write a little script to determine is a UNIX system is using
*>NIS, NIS+, or a standalone system. Any suggestions on how to approach this?
NIS has a few defining features like /etc/defaultdomain and /var/yp/*
NIS+ is almost never used anymore since few used it to begin with and now
Sun has abandoned it for LDAP for the most part. It will have a /var/nis
directory.
If /etc/defaultdomain does not exist then it's likely not running NIS or
NIS+
Probably the easiest way to do this on a Sun is to parse the
/etc/nsswitch.conf file and look for 'nis' or 'nisplus' followed by a
ypwhich if you find 'nis' and look for the 'rpc.nisd' process if you find
'nisplus' ...if you find neither nis or nisplus in nsswitch.conf you can
likely safely assume that it's a standalone system if there is no
/etc/defaultdomain.
e.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]