Question 690
In a hands-on RHCSA practice VM, the assigned outcome was: A Unix access test fails because a group was added in `/etc/group`, but a long-running user session still reports an old group set. What specific verification would demonstrate the target state?
Explanation
Correct Answer
The new session reflects the updated group list and can access the permitted lab directory. This check confirms the expected effect of: Start a new login session or use `newgrp analysts` under approved conditions and verify with `id`. It distinguishes the intended result from the original failure mechanism: A process inherits its group credentials when its session begins and may not pick up group changes dynamically.
Incorrect Answers
`getent passwd svc_labs` shows the selected UID and nonlogin shell. That verifies a separate lab task: A service account must have a fixed UID and noninteractive shell for an isolated application, not a general human login. It does not validate the implementation required here: Start a new login session or use `newgrp analysts` under approved conditions and verify with `id`.
`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: Start a new login session or use `newgrp analysts` under approved conditions and verify with `id`.
`getent passwd trainee1` ends with `/bin/bash` and an authorized test session starts. That verifies a separate lab task: A lab user was mistakenly assigned `/bin/false` as login shell and cannot open an authorized interactive session. It does not validate the implementation required here: Start a new login session or use `newgrp analysts` under approved conditions and verify with `id`.