update permissions for scripts