nerdexam
LPI

102-500 · Question #61

What can be specified with useradd? (Choose two.)

The correct answer is B. The absolute path to the user's home directory. E. The numeric user ID (UID) of the user. useradd is a Linux command for creating new user accounts, and two of its direct options are -d (set the absolute path to the home directory, e.g., useradd -d /home/alice alice) and -u (assign a specific numeric UID, e.g., useradd -u 1500 alice), making B and E correct. Why the…

Administrative Tasks

Question

What can be specified with useradd? (Choose two.)

Options

  • ACommands the user can run using sudo.
  • BThe absolute path to the user's home directory.
  • CWhich printers are available for the new user.
  • DThe SSH keys used to login to the new account.
  • EThe numeric user ID (UID) of the user.

How the community answered

(13 responses)
  • B
    77% (10)
  • C
    15% (2)
  • D
    8% (1)

Explanation

useradd is a Linux command for creating new user accounts, and two of its direct options are -d (set the absolute path to the home directory, e.g., useradd -d /home/alice alice) and -u (assign a specific numeric UID, e.g., useradd -u 1500 alice), making B and E correct.

Why the distractors are wrong:

  • A (sudo commands): Sudo privileges are configured in /etc/sudoers via visudo, completely separate from account creation.
  • C (printers): Printer access is managed by the CUPS print system-useradd has no concept of printers.
  • D (SSH keys): SSH keys are set up post-creation by placing them in ~/.ssh/authorized_keys; useradd has no option for this.

Memory tip: Think of useradd as only handling what's needed to create the account record-identity (UID) and location (home dir). Anything requiring a running service (sudo daemon, print spooler, SSH daemon) is configured elsewhere.

Topics

#user account creation#useradd options#UID specification#home directory configuration

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice