in Operating System recategorized by
4,151 views
3 votes
3 votes

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 recategorized by
4.2k views

1 Answer

5 votes
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

selected by
Answer:

Related questions