Ubuntu Agregar permiso a la carpeta
sudo chmod -R 777 /var/DirectoryName
Depressed Dragonfly
sudo chmod -R 777 /var/DirectoryName
mkdir –m 0755 <dirname>