Answers for "root file permissions in linux"


folder write permissions linux

sudo chown -R $USER /usr/local/lib/node_modules
Posted by: Guest on December-12-2020

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 "root file permissions in linux"

Browse Popular Code Answers by Language