Answer the question
In order to leave comments, you need to log in
How to set permissions on all folders and files at once?
Hello
You need to set the rights to folders and files on the hosting as follows:
Completely take away the write rights for php files (for user, group, other ), as well as all folders, but you cannot change the existing rights for both reading and writing. execution
I write like this:
find . -type f -name "*.php" -exec xargs chmod -R ugo-w {} \;
find. -type d -exec chmod -R ugo-w {} \;
The console hangs and ends.
It works without xargs, but then the properties change only in the current folder, the files and directories inside remain unchanged.
Google did not help. What other options are there to quickly change everything?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question