LX0-104 · Question #352
What strategy is used to initialize NIS maps?
The correct answer is D. Execute the make command from the /var/yp directory.. NIS maps are initialized and updated by executing the make command within the /var/yp directory on the NIS master server, which processes source files to create the DBM map files.
Question
Options
- ACreate the yp.conf configuration file then restart the NIS server process.
- BCreate the nis.conf configuration file then restart the NIS server process.
- CStart ypserver with the -new option.
- DExecute the make command from the /var/yp directory.
How the community answered
(19 responses)- C5% (1)
- D95% (18)
Why each option
NIS maps are initialized and updated by executing the `make` command within the `/var/yp` directory on the NIS master server, which processes source files to create the DBM map files.
Creating `yp.conf` is for NIS client configuration, not for initializing NIS maps on the server.
`nis.conf` is not a standard NIS configuration file for map initialization.
Starting `ypserver` with a `-new` option is not the standard method for initializing or building NIS maps; `ypinit` is used for initial server setup, and `make` for map updates.
Executing the `make` command from the `/var/yp` directory on the NIS master server is the standard procedure to build or update the NIS maps from source files like `/etc/passwd` and `/etc/group`.
Concept tested: NIS map initialization
Source: https://man7.org/linux/man-pages/man8/ypserv.8.html
Topics
Community Discussion
No community discussion yet for this question.