Linux O.S. ( 25 Sep. 2012 )




There are three default permission levels in linx
user / creator level                              u
group level                                          g
others level                                         o
collectively these are denoted with      a   
there are three permission types in linux
read                       r
write                     w
execute                               x

+             sign stands for assign the following & doesn’t effect other permission
And    -   sign deassign or deduct and doesn’t effect other permissions
=    sign makes permission equal / same as following

How to edit access permission
Chmod u+r file/foldername
Group read permission granted and other deassign read permission       Chmod g+x,o-r file/foldername
Chmod go+r file/foldername
Chmod a+rx file/foldername
Chmod a=rx file/foldername
To get all permission deassign from al users                                         Chmod a-rwx file/foldername
To change permission of main folder as well sub folders                                Chmod –R u-r,o+x file/foldername

To assign permission from numeric
0              -              -              -
1              -              -              x
2              -              w            -
3              -              w            x
4              r              -              -
5              r              -              x
6              r              w            -
7              r              w            x

Chmod 402 file/foldername
In above command first no 4 is for user 0 for group and 2 for other’s permission





click on below links for further study on linux permission levels





Comments

Popular posts from this blog

Code for Database Connection confirmation PHP+HTML

Database connect with php

New Slides