update permissions on files