Answer the question
In order to leave comments, you need to log in
How to recursively add write permissions for the others group to all nested directories and files?
How is it possible to recursively add write (w) permissions for the others group to all nested directories and files, without changing the read and execute permissions for the same user group?
Answer the question
In order to leave comments, you need to log in
chmod -R g+w /path/to/directory
provided that all files and directories belong to the others group
find /var/www/site.ru/ -type f -exec chmod -R g+w {} \;
find
- recursive search /var/www/site.ru
path -type f
only -exec
to execute files with found (find itself function) then {}
substitute the path of what will be found \;
- just close it. find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question