chmod 777You almost never need 777 permissions on any type of file, and you absolutely never need 777 on a non-executable file. – skiphoppy Commented Apr 4, 2012 at 10:51Start by setting permission numbers to 777 to grant files more access, then use the chmod command to modify specific permissions for each folder in var.