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…
Question
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)- B77% (10)
- C15% (2)
- D8% (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/sudoersviavisudo, completely separate from account creation. - C (printers): Printer access is managed by the CUPS print system-
useraddhas no concept of printers. - D (SSH keys): SSH keys are set up post-creation by placing them in
~/.ssh/authorized_keys;useraddhas 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
Community Discussion
No community discussion yet for this question.