Network Information Service (NIS) B.11.31.02 Administrator's Guide

NOTE: The pwconv and pwunconv commands enable you to switch the system between
the shadow password mode and the normal mode.
4. Enter the following commands to restart the NIS server:
/sbin/init.d/nis.server stop
/sbin/init.d/nis.server start
NOTE: The encrypted password information used for creating NIS password maps is
present in the shadow file and is visible in the passwd maps (passwd.byname and
passwd.byuid).
Controlling NIS Logging
You can control logging for the following NIS processes:
ypxfr
ypserv
ypbind
yppasswdd
Each message logged by these daemons can be identified by the date, time, host name, process
ID, and the name of the function that generated the message. You can direct log messages from
all these NIS daemons to the same file.
The following subsections describe how to control logging of NIS processes:
Stopping and Starting the Logging of ypxfr
If ypxfr is run interactively from the command line, it logs messages to standard output.
If ypxfr is run by cron or by yppush, it logs messages to the /var/yp/ypxfr.log file,
if the file exits.
To log messages in the /var/yp/ypxfr.log file, create it by entering the following
command:
/usr/bin/touch /var/yp/ypxfr.log
To stop logging of ypxfr and to remove the ypxfr.log file, enter the following command:
/usr/bin/rm /var/yp/ypxfr.log
The log output of ypxfr cannot be redirected.
For more information see ypxfr (1M), cron (1M), and yppush (1M) manpages.
Start and Stop Logging of ypserv
By default, the ypserv daemon logs messages to the file /var/yp/ypserv.log, if it exists.
Verify whether the /var/yp/ypserv.log file exists and start logging by ypserv by
entering the following command:
/usr/bin/touch /var/yp/ypserv.log
To stop logging of ypserv, remove theypserv.log file by entering the following command:
/usr/bin/rm /var/yp/ypserv.log
To direct ypserv logging to a different file, complete the following steps:
1. Enter the following commands to stop ypserv:
# /sbin/init.d/nis.server stop
2. Add the -l logfile option to the YPSERV_OPTIONS variable in the
/etc/rc.config.d/namesvrs file, as follows:
YPSERV_OPTIONS=-l /var/yp/nis_log
Controlling NIS Logging 33