chmod 777Setting 777 permissions (chmod 777) to a file or directory means that it will be readable, writable and executable by all users and may poseStart 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.