|
|
You can incorporate NIS maps in a client's
/etc/passwd file to supplement entries that are
valid only locally.
User entries can be added from the NIS password map
by starting them with the token ``+''.
NIS entries for users have the following format:
+[username]:[password]:::[comment]:[directory]:[program]
The fields have the same meaning as for ordinary passwd(F) file entries except that there are no entries for the user or group IDs. That is, the UID and GID from the NIS entry are always used; they cannot be defined locally. Entries in the password, comment, directory, or program field override the corresponding value obtained from the NIS server.
The following entry inserts the entire NIS password file:
+:Netgroup entries are added by specifying them as:
+@
netgroup:
Any host information about a netgroup is ignored.
You can prevent users and members of netgroups from logging in by
starting their passwd entries with ``-'' instead
of ``+'':
-username:
-@netgroup:
The following example passwd file is used in conjunction with the shadow(F) file to include and exclude certain users and netgroups:
root:x:0:10:super user:/:/bin/sh fran:x:121:100:Fran Sisco:/u/fran/:/bin/ksh -renee: -@marketing: +diego:::::: +:::::/u/guest:/bin/rksh +@developers:This example, though simple, implies several things:
+:::::/u/guest:/bin/rksh
that precedes the entry
defining their inclusion.
See also: