Question 40
An operations engineer needs to set permissions for /srv/archive40. The required owner/group/other modes are r-x/---/--x. Which command sets exactly those bits?
Explanation
Correct Answer
Octal 501 sets owner, owning group and others to r-x/---/--x 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 601 represents rw-/---/--x, whereas the requested mode is 501 (r-x/---/--x). Specifically, owner gets rw- instead of required r-x (incorrectly grants write; incorrectly removes execute/search). Other classes must also remain as specified; this command changes the wrong rights.
Mode 511 represents r-x/--x/--x, whereas the requested mode is 501 (r-x/---/--x). Specifically, owning group gets --x instead of required --- (incorrectly grants execute/search). Other classes must also remain as specified; this command changes the wrong rights.
Mode 502 represents r-x/---/-w-, whereas the requested mode is 501 (r-x/---/--x). Specifically, other users get -w- instead of required --x (incorrectly grants write; incorrectly removes execute/search). Other classes must also remain as specified; this command changes the wrong rights.






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