Computer Science - Unix - Discussion

Discussion :: Unix - Section 3 (Q.No.2)

2. 

The octal representation 652 indicates

[A]. Execute permission for the owner
[B]. Write permission for others
[C]. Read and write permission of groups
[D]. All of the above
[E]. None of the above

Answer: Option B

Explanation:

No answer description available for this question.

Shivani Gupta said: (Apr 29, 2011)  
Here A option is wrong because 6 means read and write permission are allowed only not execute permission.

For groups read and execute permission are allowed so option c is also wrong.

So answer should be B.

Sundar said: (Apr 30, 2011)  
0 --- 000 All types of access are denied
1 --x 001 Execute access is allowed only
2 -w- 010 Write access is allowed only
3 -wx 011 Write and execute access are allowed
4 r-- 100 Read access is allowed only
5 r-x 101 Read and execute access are allowed
6 rw- 110 Read and write access are allowed
7 rwx 111 Everything is allowed

652 = -(rw-)(r-x)(-w-)


Therefore, the file has write permission (-w-) to others only valid from the given options.

Vikas Bhardwaj said: (Mar 10, 2014)  
Answer = B because Write permission for others showed by 2.

Which indicate by 2 in 652 and remain answer are wrong.

Anil Kurmilla said: (Mar 17, 2015)  
Executable x- 1.
Read r- 2.
Write w- 4.

U-User (owner).
G-Group.
O-Others.

The order is UGO.

Now only others is matching with options i.e., 2 - write permission for others.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.