Linux dá permissão para a pasta
sudo chmod -R a+rwx /path/to/folder
Ugly Unicorn
sudo chmod -R a+rwx /path/to/folder
sudo chmod -R 757 /var/www
chmod +x script-name-here.sh #Change the "script-name-here" to the name of your .sh file.
chmod -R u=rwx,go=rx /tofile_path
sudo chmod u+w myfolder
sudo chmod -R u=rwx