Question 590
After a lab configuration change, verify: A new user must have a private home directory rather than inherited group-read access. Which result most directly proves the desired system state?
Explanation
Correct Answer
`stat -c '%a %U:%G'` reports the expected properties and a different test user cannot traverse the home. This check confirms the expected effect of: Ensure `/home/trainee1` ownership is `trainee1:trainee1` and set an approved restrictive mode such as `chmod 700 /home/trainee1`. It distinguishes the intended result from the original failure mechanism: Directory traversal and ownership control privacy of files below the home directory.
Incorrect Answers
`id trainee1` includes `analysts` and the prior supplementary groups remain. That verifies a separate lab task: A user must join the `analysts` group without losing their existing supplementary groups. It does not validate the implementation required here: Ensure `/home/trainee1` ownership is `trainee1:trainee1` and set an approved restrictive mode such as `chmod 700 /home/trainee1`.
`passwd -S contractor1` indicates locked credentials and preserved home files remain readable to authorized auditors. That verifies a separate lab task: A contractor account exists but should no longer permit interactive login after an engagement ends, while audit files must remain. It does not validate the implementation required here: Ensure `/home/trainee1` ownership is `trainee1:trainee1` and set an approved restrictive mode such as `chmod 700 /home/trainee1`.
`chage -l contractor1` shows the intended account expiration date. That verifies a separate lab task: A short-term external account must stop being usable on a specified end date while its password policy remains unchanged. It does not validate the implementation required here: Ensure `/home/trainee1` ownership is `trainee1:trainee1` and set an approved restrictive mode such as `chmod 700 /home/trainee1`.