map to grant superuser permission while saving a file