how to set permissions in a folder linux code example
Example 1: change the permissions of a folder in linux
sudo chmod -R 757 <file>
Example 2: how to give permission to a user in linux on a folder
sudo chmod u+w myfolder
sudo chmod -R 757 <file>
sudo chmod u+w myfolder