Inspect part of /etc/default/useradd.
Choose the setting that determines the base directory for new homes when no override is supplied.
GROUP=100
HOME=/srv/home
SHELL=/bin/bash
SKEL=/etc/skelWhich setting is appropriate?
HOME in /etc/default/useradd specifies the base directory under which new user home directories are placed.
Detailed explanation
GROUP=100Incorrect. GROUP concerns a default group.
Incorrect. GROUP concerns a default group.
SHELL=/bin/bashIncorrect. SHELL sets the default login shell.
Incorrect. SHELL sets the default login shell.
HOME=/srv/homeCorrect. HOME defines the base for new home directories.
Correct. HOME defines the base for new home directories.
SKEL=/etc/skelIncorrect. SKEL identifies the source of initial files.
Incorrect. SKEL identifies the source of initial files.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'HOME=/srv/home' | cut -d= -f2Expected result
/srv/homeKey points
- HOME is the base directory
- SHELL is the login shell
- SKEL is the initial-file source
Notes
- Environment: POSIX cut / 一時標準入力のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.