Ubuntu Agregar permiso a la carpeta
sudo chmod -R 777 /var/DirectoryName
Depressed Dragonfly
sudo chmod -R 777 /var/DirectoryName
sudo chmod -R 777 DirectoryName