linux give write access to folder code example
Example 1: linux give permission to folder
sudo chmod -R a+rwx /path/to/folder
Example 2: how to change permissions on a file in linux
sudo chmod -R ugo+rwx /file/path
sudo chmod -R a+rwx /path/to/folder
sudo chmod -R ugo+rwx /file/path