Permissions in directories control whether you can list (read), create (write), or search (execute) files in this directory. After a file is created, file ownership and permissions control access to this file. Therefore, you should be able to chmod a-wdirectories. However, he will not be able to recreate the files, but only modifies them. However, any hacker can change this change, unless you remove him from him. In this case, you do not have to change perms records at all.
source
share