Answers for "assigning permissions to folder and files in linux"

15

linux give permission to folder

sudo chmod -R a+rwx /path/to/folder
Posted by: Guest on June-08-2020
1

assigning permissions to folder and files in linux

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
Posted by: Guest on August-05-2021

Code answers related to "assigning permissions to folder and files in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language