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

NOTE: Back up the /etc/passwd file before modifying it.
To modify the NIS client /etc/passwd file, remove all users from the /etc/passwd
file, except the root user, other users with administrative privileges, and the system
entries required for the system to boot and function properly. System entries have user
IDs less than 100.
The changes made to the /etc/passwd file on an NIS client must be identical to the
changes made on an NIS slave server.
For more information, see passwd (4).
Modifying the NIS Client group File
This section describes how to modify the NIS client's /etc/group file.
Modifying the NIS client /etc/group file is optional. Modifying the NIS client /etc/
group file enables the host running the NIS client to use the information in the NIS
maps to validate group login information using the configured NIS domain instead of
the local group file. If you do not modify the local group file, only users defined in the
local /etc/group file can log into the host.
Following is a sample /etc/group file on an NIS client:
root::0:admin
other::1:root,hpdb
bin::2:root,bin
sys::3:root,uucp
adm::4:root,adm
daemon::5:root,daemon
mail::6:root
lp::7:root,lp
tty::10:
nuucp::11:nuucp
users::20:root
nogroup:*:-2:
smbnull::101:
hpsmh::102:
sshd::103:
nisg::104:
nisgr::105:
where:
root
is the login name.
is a field for encrypted password. In the sample /etc/group file, this field
is empty.
0
is the numerical group ID.
admin
is a comma-separated list of all users allowed in a group.
52 Configuring and Administering an NIS Client