Question 180
The engineer proposes this implementation: Create an appropriate system account with useradd -r -s /usr/sbin/nologin svcname (path distro dependent). The requirement is: A daemon needs a low-privilege local system identity that normally should not be used for interactive login. Which technical explanation best supports the proposed action?
Explanation
Correct Answer
A system-account UID allocation and non-login shell reduce interactive access when no shell is needed. It specifically supports the proposed action of Create an appropriate system account with useradd -r -s /usr/sbin/nologin svcname (path distro dependent). for the requirement described.
Incorrect Answers
This explains another Linux operation, namely Run id -gn username to display the account's primary group name., where id retrieves the user's UID/GID identity details from system account sources; the primary GID is not merely a supplementary group entry. It does not explain why Create an appropriate system account with useradd -r -s /usr/sbin/nologin svcname (path distro dependent). satisfies the stated condition.
This explains another Linux operation, namely Inspect the protected /etc/shadow database under appropriate privileges., where /etc/shadow stores password hash and aging fields, separate from the world-readable account metadata in /etc/passwd. It does not explain why Create an appropriate system account with useradd -r -s /usr/sbin/nologin svcname (path distro dependent). satisfies the stated condition.
This explains another Linux operation, namely Use groupmod -n newgroup oldgroup., where The -n option changes the group name while retaining its numeric group identifier. It does not explain why Create an appropriate system account with useradd -r -s /usr/sbin/nologin svcname (path distro dependent). satisfies the stated condition.






LPI Level 1 (102-500) Practice Tests