Computer Science - Unix - Discussion
Discussion Forum : Unix - Section 3 (Q.No. 2)
2.
The octal representation 652 indicates
Discussion:
4 comments Page 1 of 1.
Anil Kurmilla said:
1 decade ago
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.
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.
Vikas Bhardwaj said:
1 decade ago
Answer = B because Write permission for others showed by 2.
Which indicate by 2 in 652 and remain answer are wrong.
Which indicate by 2 in 652 and remain answer are wrong.
Sundar said:
1 decade ago
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.
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.
Shivani gupta said:
1 decade ago
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.
For groups read and execute permission are allowed so option c is also wrong.
So answer should be B.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers