Write permission in Linux
Write permission in Linux :
The write operation can be performed when the owner of file want to grant.The owner of the file can prevent your self using chmod command with U option.Here is an example which is granting the write access to others and group.
$ chmod o+w my_file.txt
$ chmod g+w my_file.txt
The w word specifies the Read permission on the file to group and others respectively.
Execute permission on File in Linux
Execute permission on File :
The execute permission specifies that a user can view and use of file for other task.The execute permission is granted with x word and associate the name of file.An example is given below :
$ chmod o-x sneak.txt
$ chmod o-x sneak.txt
You can specify the Others and Group together for permission for particular file.
Changing Permissions With Numbers
Changing Permissions With Numbers :
Linux provide another way to change permission of files which is dependent on the calculation of number.The number are here against permission :
Read [r - 4]
Write [w- 2]
Execute [x - 1]
Nothing [- - 0]
You can use these number grant the permission with calculation.I am going to show an example in which I will grant read and write permission to others on Lillber.txt .
$ chmod 006 Lillber.txt