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.
SHELL=/bin/bashIncorrect. SHELL sets the default login shell.
HOME=/srv/homeCorrect. HOME defines the base for new home directories.
SKEL=/etc/skelIncorrect. 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
Account record
Identity attributes such as a user ID, home directory, and login shell.
Group membership
Primary and supplementary groups used during permission checks.
Password aging
State and time limits that control password changes and account access.