find /var/www/folder -type d -exec chmod 770 {} \;
change files in folder and subfolders:
find /var/www/folder -type f -exec chmod 660 {} \;
of course "chmod 660" can be replaced with "chown user" or something else ...
or
chmod -R a+rX *
capital X only for folders!
small x for files!
No comments:
Post a Comment