4 Comments

This http://en.wikipedia.org/wiki/Filesystem_permissions should tell you all about it.

This is how it works. Say 1 means yes, 0 means no.

If you want

Read 1 yes

Write 0 no

Execute 1 yes

Then you have 101 which in octal is number 5

If you say yes to read, write and execute

Then you have 111 --- which is 7

Also, it goes by users, groups, others.

So first octal digit is for users, the second digit for groups and last for others

Octal would only mean that a digit would never exceed 7.

0 1 2

1 10 100

Octal is base 8

1 8 64

However, Octal numbers like their HEX brotheren, can be represented by 0's and 1's in the base-2

three digits on base 2 represents an octal digit

1 2 4

four digit on base 2 represents a HEX digit

1 2 4 8

Execute has a 0 or 1 value

Write has a 2 or 0 value

Read has a 4 or 0 value

In octal it is represented as:

Read x2^2 +write *2^1+execute*2^0

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join the community of 500,000 technology professionals and ask your questions.

Connect with top rated Experts

**25** Experts available now in Live!