do not trigger autocommands when writing temp files
when using su, write error file