Network Information Service (NIS) B.11.31.04 Administrator's Guide
-@bears::::::
+@documentation::::::
-@marketing::::::
These lines result in searching the NIS database for users from the documentation
netgroup. Access is denied for users from the documentation and marketing
netgroup.
For more information about the /etc/passwd file, see passwd((4)).
Editing the Slave Server's passwd File in Compat Mode
• HP recommends you to remove all users from the /etc/passwd file except the
root user and the system entries required for your system to boot and function
properly. System entries usually have user IDs less than 100; therefore all entries
with user IDs of 100 or greater can be evaluated for removal.
• The /etc/nsswitch.nis file is the Name Service Switch configuration file
provided for the NIS server. The /etc/nsswitch.nis file allows your host to
check its local /etc/passwd file and then continue to the NIS passwd map if the
requested information is not in the local file.
If you want your host to check its local /etc/passwd file and then continue to
the NIS passwd map, add the following entry as the last line in the /etc/passwd
file:
+:::::
Ensure that you specify compat as the name service for the passwd maps in the
/etc/nsswitch.conf file.
The plus sign (+) causes processes to consult the NIS server for any user information
not found in the local /etc/passwd file.
For more information about the entries in the /etc/passwd file, see passwd(4).
CAUTION: An asterisk (*) in the password field of the NIS escape entry prevents
all NIS users from logging in when the NIS server is running.
The following displays an example /etc/passwd file on an NIS slave server:
root:0AnhFBmriKvHA:0:3::/:/bin/ksh
daemon:*:1:5::/:/bin/sh
bin:*:2:2::/bin:/bin/sh
adm:*:4:4::/usr/adm:/bin/sh
uucp:*:5:3::/usr/spool/uucppublic:/usr/lib/uucp/uucico
lp:*:9:7::/usr/spool/lp:/bin/sh
hpdb:*:27:1:ALLBASE:/:/bin/sh
+::::::
For more information about the /etc/passwd file, see passwd((4)).
74 Using NIS in Compat Mode