Setting up a NIS Client using Traditional NIS
NIS!client setupFor host lookups you must set (or add) "nis" to the lookup order line
in your /etc/host.conf file. Please see the
comments in /etc/host.conf for more details.Add the following line to /etc/master.passwd using vipw on your NIS clients:
+:::::::::
You can also use the + and - characters to include/exclude or change
users. If you want to exclude the user guest just add -guest to your
/etc/master.passwd file.
You want to use a different shell (e.g. ksh) for
the user "ken"? No problem, just add "+ken:::::::::/usr/local/bin/bash"
(without the quotes) to your /etc/master.passwd. Fields
that you don't want
to change have to be left empty. You could also use Netgroups for
user control.For example, to allow login-access only to miquels, dth and ed, and
all members of the sysadmin netgroup, but to have the account data
of all other users available use:
+dennis:::::::::
+@sysadmins:::::::::
-ftp:::::::::
+@rejected-users::32767:32767::::::/bin/false
Note that in FreeBSD you can also override the password field, as we did
in this example. We also remove the login "ftp", so it isn't known any
longer, and anonymous ftp will not work.
See the ``man 5 passwd'' for further explantion and more examples.