Question 190
The engineer proposes this implementation: Run id -gn username to display the account's primary group name. The requirement is: A technician wants to inspect which group is the primary group for a named account. Which technical explanation best supports the proposed action?
Explanation
Correct Answer
id retrieves the user's UID/GID identity details from system account sources; the primary GID is not merely a supplementary group entry. It specifically supports the proposed action of Run id -gn username to display the account's primary group name. for the requirement described.
Incorrect Answers
This explains another Linux operation, namely Create the group with groupadd appreaders., where groupadd creates the group in the local group database so members and file ownership can refer to it. It does not explain why Run id -gn username to display the account's primary group name. satisfies the stated condition.
This explains another Linux operation, namely Create the account with useradd -m -s /bin/bash employee and set its password., where useradd creates the account database entry, -m creates the initial home and -s selects the login shell. It does not explain why Run id -gn username to display the account's primary group name. satisfies the stated condition.
This explains another Linux operation, namely Run userdel -r oldsvc with the required permissions and backups., where userdel removes the account records and -r also removes its home and mail spool where supported. It does not explain why Run id -gn username to display the account's primary group name. satisfies the stated condition.






LPI Level 1 (102-500) Practice Tests