chmod 777777 means the file directory is granted read, write and execute permissions for all three user classes, including the owner, group members, and others.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.