LFCS · 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 by executing the make command from the /var/yp directory on the NIS master server, which processes the Makefile to generate the necessary database 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
(62 responses)- A2% (1)
- B3% (2)
- C2% (1)
- D94% (58)
Why each option
NIS maps are initialized by executing the `make` command from the `/var/yp` directory on the NIS master server, which processes the `Makefile` to generate the necessary database files.
`yp.conf` is a client-side configuration file for specifying the NIS domain and server, not for initializing maps.
`nis.conf` is not a standard NIS configuration file for map initialization.
The `ypserver` command is typically for starting the NIS server process, and it does not have a `-new` option for map initialization; map creation is done via `make`.
The standard procedure for initializing or updating NIS maps involves navigating to the `/var/yp` directory on the NIS master server and executing the `make` command, which uses the `Makefile` in that directory to compile the NIS maps from source configuration files.
Concept tested: NIS map initialization
Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-network_information_service_nis#s1-configure_nis_master_server
Topics
Community Discussion
No community discussion yet for this question.