Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux give permission to folder

sudo chmod -R a+rwx /path/to/folder
Comment

linux give full permission to directory

# Change permissions for the root file/dir only
chmod 777 path/to/directory/
# Or
chmod 777 path/to/file
# Change permission for root dir and all files/dirs within
chmod -R 777 path/to/directory/
Comment

how to give all permission to a directory in linux

sudo chmod -R ugo+rwx /path/to/folder

// @Zenonymous
Comment

how to give permission to a user in linux on a folder

sudo chmod u+w myfolder
Comment

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 :: date-fns npm package 
Shell :: git list remote tags 
Shell :: ubuntu install ssh server 
Shell :: phoneinfoga github 
Shell :: upgrade beautifulsoup version 
Shell :: downgrade react 18 to 17 
Shell :: how to undo git remote origin 
Shell :: remove stash files git 
Shell :: conda install moviepy 
Shell :: macos install airport 
Shell :: git delete all branches except master 
Shell :: bash: /var/lib/snapd/snap/bin/docker-compose: No such file or directory 
Shell :: git sync local branch with remote 
Shell :: ionic cordova live reload 
Shell :: unable to start ssh-agent service, error :1058 
Shell :: -bash: service: command not found 
Shell :: gnome alt tab do not show other workspace 
Shell :: linux ext-gd * 
Shell :: docker clear container logs 
Shell :: linux see battery state 
Shell :: download ganache cli for windows 
Shell :: black web browser github 
Shell :: ionic capacitor ios live reload 
Shell :: git@bitbucket.org: Permission denied (publickey). 
Shell :: kill all processes by name linux 
Shell :: fish disable greeting 
Shell :: git commit number of lines changed 
Shell :: conda create enviroment from file 
Shell :: install three.js 
Shell :: how to get git username and password 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =