📌  相关文章
📜  在 linux 中为文件夹和文件分配权限 - Shell-Bash 代码示例

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

代码示例2
sudo find /folder/path/public_html -type f -exec chmod 644 {} \;
sudo find /folder/path/public_html -type d -exec chmod 755 {} \;

sudo find . -type f -exec chmod 664 {} \;   
sudo find . -type d -exec chmod 775 {} \;

sudo chown -R $USER:www-data .

### Assign permission to web users for writting folder
sudo chgrp -R www-data storage/framework storage/logs bootstrap/cache 
sudo chmod -R ug+rwx storage/framework storage/logs bootstrap/cache