Assign Permissions To The Folder And File

[Solved] Assign Permissions To The Folder And File | Perl - Code Explorer | yomemimo.com
Question : assigning permissions to folder and files in linux

Answered by : lokesh-ramchandani

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 

Source : | Last Update : Thu, 12 Aug 21

Answers related to assign permissions to the folder and file

Code Explorer Popular Question For Perl