7= r+w+e
6= r+w
5= r+e
and so on.
X= any combination of 4,2,1 means rwx
--------X---------------X---------X----------
User Permissions-----Group------Others
d-rwx-rwx-rwx
d=:type
First:user permissions
Second:Group permissions
Third
ther permissions
755 means read, write and execute for user.
..........read and execute for group and others
Cheers!!