Solved

Linux Permissions - What does Octal mean?  N00b

Posted on 2011-03-15
4
376 Views
Last Modified: 2012-06-22

I grasp the idea of read / write / execute

Its split into 3 groups after the D for directory.  Owner Group and Others.  

Octal?


0
Comment
Question by:fcek
4 Comments
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 100 total points
ID: 35142934
This http://en.wikipedia.org/wiki/Filesystem_permissions  should tell you all about it.
0
 
LVL 31

Accepted Solution

by:
farzanj earned 400 total points
ID: 35142937
Octal means base 8 number : 0 through 7, then the next number is 10

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
 

Author Comment

by:fcek
ID: 35143146


Ok the penny is beginning to drop as they say.


0
 
LVL 77

Expert Comment

by:arnold
ID: 35143159
Octal deals with the base of all numbers similar to the decimal system
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

910 members asked questions and received personalized solutions in the past 7 days.

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

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now