to change permision there is a command to do so that is chmod
Example:
this will change the permission of the file “customfile.html” to 644
what does 644 mean?
every file and folder in lniux has 2 thre main field for permission
one will provide the user and group and world access
the other will creat the permision of these accesses
the read access of a file or a folder hase a value of 4
the write is 2
and the execute has the value of 1
so to have a better visual understanding I will show you the permission of 644
Mode User Group World
Read 4 4 4
Write 2 2 2
Execute 0 0 0
Permission 6 4 4
hope you had a better understand of the permission now
so lets talk about how to change a permission of a directory(folder)
just like changing the permission of a folder
to make it recursive meaning all of the folders and fiels inside this myfolder directory will be change
No related posts.