Updating permissions for files in the system