recategorized by
4,158 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
recategorized by

1 Answer

Best answer
5 votes
5 votes

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

0 votes
0 votes
1 answer
2
makhdoom ghaya asked Jul 10, 2016
1,562 views
Match the following with reference to Unix shell scripts $:$$\begin{array}{clcl} & \textbf{List – I} & & \textbf{List – II} \\ \text{a.} & \text{\$?} & \text{i.} & ...
0 votes
0 votes
2 answers
4
Sanjay Sharma asked Jul 11, 2016
3,933 views
In UNIX OS , when a process creates a new process using the fork() system call , which of the following state is shared between the parent process and child processHeapSt...