Network Information Service (NIS) B.11.31.04 Administrator's Guide
3. Edit the /etc/passwd file so that pure NIS users cannot access the local system,
which serves as the NIS master server.
4. Edit the /var/yp/Makefile file. Replace:
PWFILE=$(DIR)/passwd
with
PWFILE=$(DIR)/passwd.yp
5. In the /etc/rc.config.d/namesvrs file, modify the value of the
YPPASSWDD_OPTIONS variable from:
YPPASSWDD_OPTIONS=”/etc/passwd -m passwd PWFILE=/etc/passwd”
to:
YPPASSWDD_OPTIONS=”/etc/passwd.yp -m passwd PWFILE=/etc/passwd.yp”
6. Stop and start the NIS server daemons:
# /sbin/init.d/nis.server stop
# /sbin/init.d/nis.server start
7. Regenerate the NIS passwd maps from the /etc/passwd.yp file:
# cd /var/yp
# /usr/ccs/bin/make passwd
The make passwd command generates both the passwd.byname and the
passwd.byuid maps, and copies them to the slave servers.
If the slave servers are not up and running yet, enter make with the NOPUSH flag
set to 1:
# cd /var/yp
# /usr/ccs/bin/make NOPUSH=1 passwd
For more information, see the following manpages:
• passwd(4)
• make(1)
• ypmake(1M)
• ypinit(1M)
Setting up an Alternate Directory for the passwd File
When starting the NIS passwd daemon, rpc.yppasswddm, you must specify the directory
where the passwd file (/etc/shadow file when in shadow mode) is located in the
HP-UX 11i v3 operating system. You can use the -D option to specify the directory
where the passwd and shadow files are located:
# rpc.yppasswdd -D /etc/nis
The default path for the passwd and shadow files is /etc. You must use this path to
avoid a warning message at system startup.
Setting up an Alternate Directory for the passwd File 33