how to change permissions on directory and all files in folder linux code example
Example 1: change the permissions of a folder in linux
sudo chmod -R 757 <file>
Example 2: changing folder permission in linux
chown {user:group} {directory} -R
sudo chmod -R 757 <file>
chown {user:group} {directory} -R