Question 100
Original unofficial RHEL 10 RHCSA skill-check scenario: A deployment script inherits an unexpected effective UID from a scheduled service and silently fails to create expected files. Which ongoing practice best prevents a recurrence?
Explanation
Correct Answer
In this RHEL 10 system administration case: A deployment script inherits an unexpected effective UID from a scheduled service and silently fails to create expected files. Underlying reason: Script permissions depend on effective identity at execution time. The most direct, approved resolution is: Inspect `id -u` and the invoking service account; execute with the explicitly approved identity. Confirm it by checking: Test output ownership and required operations match the intended runtime account. Sustain the fix by: Record the expected service user in unit and job definitions. This is the INTENDED response for the best ongoing operational safeguard. It is a knowledge-check explanation, not a verified hands-on Red Hat exam answer;
Incorrect Answers
Verify identity and destination before writing shared artifacts. That is not sufficient for the reported RHEL task, because script permissions depend on effective identity at execution time.
Avoid recursive permission changes without scope and review. That is not sufficient for the reported RHEL task, because script permissions depend on effective identity at execution time.
Exercise negative tests for multi-command pipelines. That is not sufficient for the reported RHEL task, because script permissions depend on effective identity at execution time.