| |
NIS server configuration
Server maintains the authoritative centralized copies of system files and
their maps in hashed format, ndbm or gdbm.
Both NIS server and client files are contained in NIS package; to install it:
Choose a unique name for NIS domain, for example rate, and
store it in /etc/defaultdomain
Modify file /etc/default/nis to enable NIS server:
Specify the location of the password file and enable change of the login shell in /etc/default/nis:
To initialize NIS maps in /var/yp directory, run
Modify entry "ALL" in /var/yp/Makefile, specifying only the maps we need to share, for example passwd and group:
Start NIS server:
Every time /etc/passwd and/or /etc/group is modified,
the change should be updated in the NIS maps as follows:
Note, for security reasons, the minimum uid and gid
included in the NIS maps is defined in the Makefile
Restrict access to the NIS maps only from specified subnets and/or hosts in
/etc/ypserv.securenets
|
|