chmod 777chmod 777 is considered potentially dangerous because you are giving read, write and execute permission on a filedirectory to everyone.Start 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.