Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

UGC-NET | UGC NET CS 2016 July – III | Question 69

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

    My Personal Notes arrow_drop_up
Last Updated : 24 Apr, 2018
Like Article
Save Article
Similar Reads