Loading practice questions
In Unix, files can be protected by assigning each one a 9-bit mode called rights bits. Consider the following statements:
Statement I: A mode of 641 (octal) means that the owner can read and write the file, other members of the owner's group can read it, and users can execute only.
Statement II: A mode of 100 (octal) allows the owner to execute the file, but prohibits all other access.
Which of the statements given above is/are correct?
Correct Answer: D — Both Statement I and Statement II are correct
Explanation:
An octal mode of 641 means read/write (6) for the owner, read (4) for the group, and execute (1) for others. Mode 100 grants execute-only to the owner. Both statements are correct.