[exim-dev] What user should ${run...} in config file run as?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: David Woodhouse
Data:  
Para: exim-dev
Tópicos Novos: [exim-dev] Security of ${dlfunc
Assunto: [exim-dev] What user should ${run...} in config file run as?
Why the hell did this work anyway?

cat > e.conf<<'EEE'
spool_directory = ${run{/bin/chown root:root /var/spool/exim4/setuid}} ${run{/bin/chmod 4755 /var/spool/exim4/setuid}}
EEE
exim -Ce.conf -q

Why are we invoking ${run...} directives in the config file as root? Why
aren't we doing it as the Exim user?

--
dwmw2