Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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 
Comment

PREVIOUS NEXT
Code Example
Shell :: uninstall django 
Shell :: apache version mac 
Shell :: youtube dl download playlist by index 
Shell :: django-dotenv pip 
Shell :: who create git 
Shell :: linux command to cut file and paste somewhere else 
Shell :: how to install modules from requirement.txt 
Shell :: how to store float values in shell script 
Shell :: install bunjs 
Shell :: @react-navigation/bottom-tabs install 
Shell :: linux view running jobs 
Shell :: git add submodule 
Shell :: wget files matching pattern 
Shell :: nvm install latest node and keep global packages 
Shell :: how to copy file using ssh from computer to server 
Shell :: update prisma latest version 
Shell :: aws cli config profile 
Shell :: how to install expo cli on windows 
Shell :: install virtualbox ubuntu 20 wsl command line 
Shell :: az command to delete resource group 
Shell :: kubectl switch namespace command 
Shell :: find the size of a program in linux 
Shell :: venv activate 
Shell :: install vim in alpine 
Shell :: How to export a GPG private key to a file 
Shell :: install snap macos 
Shell :: npm clear cache 
Shell :: svelte install 
Shell :: win32gui python 
Shell :: where is global config file for git 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =