📜  drupal 文件权限 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:46.758000             🧑  作者: Mango

代码示例1
cd /var/www/html/drupal9
sudo chown -R my-user:apache .
sudo find . -type d -exec chmod 750 '{}' \;
sudo find . -type f -exec chmod 640 '{}' \;
cd web/sites
sudo find . -type d -name files -exec chmod 770 '{}' \;
for d in ./*/files
do
   sudo find $d -type d -exec chmod 770 '{}' \;
   sudo find $d -type f -exec chmod 660 '{}' \;
done