nerdexam
CompTIA

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.

Essential System Services

Question

What strategy is used to initialize NIS maps?

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)
  • C
    5% (1)
  • D
    95% (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.

ACreate the yp.conf configuration file then restart the NIS server process.

Creating `yp.conf` is for NIS client configuration, not for initializing NIS maps on the server.

BCreate the nis.conf configuration file then restart the NIS server process.

`nis.conf` is not a standard NIS configuration file for map initialization.

CStart ypserver with the -new option.

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.

DExecute the make command from the /var/yp directory.Correct

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

#NIS configuration#NIS maps

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice