Linux permissions guide table, help for new users

by Sameer on June 2, 2010

in Internet, Softwares

I am always having problems when I need to assign a permissions to a folder (directory) or a file and always forgot which chmod numeric values I have to use. I collected all the chmod numeric values along with their permissions details in this table.

This table shows what numeric values mean:

Octal digit Text equivalent Binary value Meaning
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

Here it can be noted that "1" stands for execute only, "2" stands for write only, "4" stands for read only.

To combine the permissions you can simply add 1, 2 and 4 to get a needed combination. For instance, to get read and write permissions, you add 4 (read) and 2 (write), thus getting 6 (read and write). To get read and execute permissions, you add  4 (read) and 1 (execute), thus getting 5 (read and execute).

You may like receiving latest interesting stories every day in your email Click here to subscribe all news items or click here for only technology related updates

Previous post:

Next post:


Please submit your comments only once. Sometime your comments publishing may be little delayed

Comment Policy:

It is a very difficult to moderate all comments live. We beleive in freedom of expression. So we do not like to stop anyone's opinion. But to bring a little sanity in the debate it is recommended that please do not use abusive, off-topic, slang language. Please do not make racial attacks, Please carry on a civilized discussion. Comment posters are responsible for anything they post.
© 2012 PakPoint Network. Disclaimer: PakPoint Network trust on the freedom of expression. All the material, videos, images and links posted here are contributed by the members of the site or taken from third party websites and/or are already in public domain and are owned by their respective rightful owners. We do not record or sell any copyrighted material. All trademarks, trade names, service marks, copyrighted work, logos referenced herein belong to their respective owners/companies. If you find any content in violation of your rights please give your feedback and it will be removed immediately. pakpoint @ gmail.com