Tuesday, 24 December 2013

How to change the permissions on a file or directory

Hello friends I am DeepakSaini and Today I am trying to expalin how we are change or set the permissions on the file or directory.
Lets Start

1 How to set the permissions on the Directory
syntax :- chmod <permissions> <Dir or Dir path>


In this chmod is the command and permissions of the permissions which are give to the users ,group or others.

2 How to set the permission on the file
syntax :- chmod <permissions> <File Or File path>
in this same as the dir chmod is the command and permissions  are permission same as dir.

3 How to set permission for the file or Dir owner or other 
 syntax:- chmod u=rwx <file or dir path>
In this command we are using chmod as the command and u for the owner or creator of the file.

4 How to set the permissions for the groups
syntax :- chmod g=<permissions> <File or Dir Path>

5 How to set the permissions for  other users
syntax :- chmod o=<permissions> <Files or Dir>


 Thanks for reading and Sorry For my R.I.P english
_/\_ Jai Hind

0 comments:

Post a Comment