Question 20
While preparing a RHEL 10 server needs to set permissions for /srv/migration20. The required owner/group/other modes are -wx/-wx/-wx. Which command sets exactly those bits?
Explanation
Correct Answer
Octal 333 sets owner, owning group and others to -wx/-wx/-wx respectively. Each octal digit is the sum of read=4, write=2 and execute/search=1, so the resulting mode exactly matches the three required classes.
Incorrect Answers
Mode 433 represents r--/-wx/-wx, whereas the requested mode is 333 (-wx/-wx/-wx). Specifically, owner gets r-- instead of required -wx (incorrectly grants read; incorrectly removes write, execute/search). Other classes must also remain as specified; this command changes the wrong rights.
Mode 343 represents -wx/r--/-wx, whereas the requested mode is 333 (-wx/-wx/-wx). Specifically, owning group gets r-- instead of required -wx (incorrectly grants read; incorrectly removes write, execute/search). Other classes must also remain as specified; this command changes the wrong rights.
Mode 334 represents -wx/-wx/r--, whereas the requested mode is 333 (-wx/-wx/-wx). Specifically, other users get r-- instead of required -wx (incorrectly grants read; incorrectly removes write, execute/search). Other classes must also remain as specified; this command changes the wrong rights.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests