Respecting the file's permission mode