Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 1 (Q.No. 13)
13.
The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:
000
755
744
555
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
10 comments Page 1 of 1.

Chanchal Thakur said:   7 months ago
The octal number for these permissions is 755.
Here's the breakdown of the permissions:
Owner (user): Read (4), Write (2), Execute (1) → 4 + 2 + 1 = 7.
Group: Read (4), Execute (1) → 4 + 1 = 5.
Others: Read (4), Execute (1) → 4 + 1 = 5.

Rajesh Bodana said:   5 years ago
Read = 4 Write = 2 Execute = 1
Files are assigned in User, group, other
7 = all permission to the user.
5 = Read Execute to group.
5 = Read Execute to group.
So, the answer = 755.

Firoz said:   8 years ago
Thank you all for the given explanation.

Arnab said:   1 decade ago
The order is user, group other where each consists of a triplet in the form rwxrwxrwx.

Now we use 1 to grant a permission and 0 to remove a permission.

For all permission to user substitute 111 for the first triplet = 7.

For read and execute to group substitute 101 for the second triplet = 5.

For read and execute to others substitute 101 for the third triplet = 5.

Ultimately its 755.

Vikas Bhardwaj said:   1 decade ago
Read = 4.
Write = 2.
Execute = 1.

User = read,execute ( 4+1) = 5.
Group = read,execute ( 4+1) = 5.
User = read,write and execute ( 4+2+1) = 7.

Than answer is 755.

Palak said:   1 decade ago
RWX is the sequence for read write and execute.

R = 100 (binary form) = 4.

W = 010 = 2.

X = 001 = 1.

=> read+write+execute = 111 = 7 (binary to decimal conv.)

And, read+execute = 101 = 5.

Sonali malviya said:   1 decade ago
Read = 4.
Write = 2.
Execute = 1.

So,
User = read,execute ( 4+1) = 5.
Group = read,execute ( 4+1) = 5.
User = read,write and execute ( 4+2+1) = 7.

Answer = 755.

Jawahar said:   1 decade ago
Read=4.

Write=2.

Execute=1.

Anil Kumar jangra said:   1 decade ago
Read=4 Write=2 Execute=1
Files are assigned in User,group,other
7=all permission to user
5= Read Execute to group
5= Read Execute to group
so answer=755

Bhanu said:   1 decade ago
Read=4.

Write=2.

Execute=1.

Post your comments here:

Your comments will be displayed after verification.