Ubuntu Agregar permiso a la carpeta
sudo chmod -R 777 /var/DirectoryName
Depressed Dragonfly
sudo chmod -R 777 /var/DirectoryName
sudo chmod -R a+rwx /path/to/folder
sudo chmod -R 777 DirectoryName
sudo chmod u+w myfolder
mkdir –m 0755 <dirname>