Question 220
A Linux infrastructure team needs the safest targeted response to this condition: A system user must be created without a login shell for a daemon. What is the most appropriate targeted action?
Explanation
Correct Answer
An interactive shell expands the entry points of an unattended account. The proposed change is specific to this fault. Confirm the result: The daemon owns its files while interactive login is refused.
Incorrect Answers
That remedy is appropriate when an account must be prevented from password login without removing its files. It targets passwd -l locks the stored password authentication route for the account; here an interactive shell expands the entry points of an unattended account, so it does not directly repair the observed fault.
This change addresses a user has an invalid login shell specified in /etc/passwd. The present problem is different: an interactive shell expands the entry points of an unattended account. Applying the alternative would leave the key cause unresolved.
That remedy is appropriate when a new account was created but home directory was omitted and shell login fails to find startup files. It targets useradd home-creation options determine whether the home directory is initialized; here an interactive shell expands the entry points of an unattended account, so it does not directly repair the observed fault.





CompTIA Linux+ (XK0-006) Practice Tests