UGC-NET | UGC NET CS 2016 July – III | Question 69
In Unix, files can be protected by assigning each one a 9-bit mode called rights bits. Now, consider the following two statements:
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.
II. A mode of 100 (octal) allows the owner to execute the file, but prohibits all other access.
Which of the following options is correct with reference to above statements ?
(A) Only I is correct.
(B) Only II is correct.
(C) Both I and II are correct.
(D) Both I and II are incorrect.
Answer: (C)
Explanation: In Unix:
- Files can be protected by assigning each one a 9-bit mode called rights bits.
- 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.
- A mode of 100 (octal) allows the owner to execute the file, but prohibits all other access.
Both statement are correct regarding to UNIX.
So, option (C) is correct.
Quiz of this Question
Please Login to comment...