The Gateway to Computer Science Excellence
+3 votes
1.1k views

In Unix, files can be protected by assigning each one a 9-bit mode called rights bits, now, consider the following two statements:

  1. 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
  2. A mode of 100 (octal) allows the owner to execute the file , but prohibits all other access

Which of the following statements is correct with reference to above statements?

  1. Only I is correct
  2. Only II is correct
  3. Both I and II are correct
  4. Both I and II are incorrect
in Operating System by Veteran (105k points)
recategorized by | 1.1k views

1 Answer

+5 votes
Best answer

Option C is correct.

In Unix the access control of file is done through chmod command. The command is Octal , the three rightmost are for _ _ _

First is for owner

Secod is for group

Third is for others

here rwx is read, write ,execute. They can take the value from 0 through 7 where

# Permission rwx
7 read, write and execute rwx
6 read and write rw-
5 read and execute r-x
4 read only r--
3 write and execute -wx
2 write only -w-
1 execute only --x
0 none ---



641-represent--> the owner can read and write the file, other members of the owner's group can read it, and users can execute only

100 ->the owner to execute the file , but prohibits all other access

by Junior (973 points)
selected by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,479 answers
195,421 comments
100,555 users