Question 30
While preparing a RHEL 10 server needs to set permissions for /srv/archive30. The required owner/group/other modes are rw-/-w-/rw-. Which command sets exactly those bits?
Explanation
Correct Answer
Octal 626 sets owner, owning group and others to rw-/-w-/rw- 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 726 represents rwx/-w-/rw-, whereas the requested mode is 626 (rw-/-w-/rw-). Specifically, owner gets rwx instead of required rw- (incorrectly grants execute/search). Other classes must also remain as specified; this command changes the wrong rights.
Mode 636 represents rw-/-wx/rw-, whereas the requested mode is 626 (rw-/-w-/rw-). Specifically, owning group gets -wx instead of required -w- (incorrectly grants execute/search). Other classes must also remain as specified; this command changes the wrong rights.
Mode 627 represents rw-/-w-/rwx, whereas the requested mode is 626 (rw-/-w-/rw-). Specifically, other users get rwx instead of required rw- (incorrectly grants execute/search). Other classes must also remain as specified; this command changes the wrong rights.






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