Question 500
A technician needs to inspect the current account's UID, primary GID and group memberships. One student proposes Run id and another proposes Run su - as an authorized user and authenticate as required. Which technical comparison is the soundest?
Explanation
Correct Answer
Correct distinction: Run id targets effective user group IDs; id reports a user's identity numbers and associated group memberships. The compared alternative instead serves root login shell switch.
Incorrect Answers
Incorrect mapping: Run su - as an authorized user and authenticate as required is used for root login shell switch. It does not displace Run id for the described requirement.
The mechanisms are different: id reports a user's identity numbers and associated group memberships. By contrast, su - switches to the target user's login environment, typically root when unspecified. They are not universally interchangeable.
The third option addresses current logged-in sessions: who lists user login sessions recorded by the system. The original action remains relevant because id reports a user's identity numbers and associated group memberships.