Re: [exim] Running exim daemon without any root privileges

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Peter Bowyer
Date:  
À: exim users
Sujet: Re: [exim] Running exim daemon without any root privileges
On 12/02/2008, Bernd Jendrissek <bernd.jendrissek@???> wrote:
> Fine, I could use exim_user = bernd, but then my colleague
> charles needs his own copy of this config file. I thought I could use
> exim_user = $caller_uid, but exim complains:
> seeking password data for user "$caller_uid": cache not available
> getpwnam() returned NULL (user not found)
> What to do?


exim_user is not expanded. But you could perhaps use a macro which you
define on the command line with

exim -DEXIM_USER=bernd -bd ...

and

exim_user = EXIM_USER

in the config file. Untested, this may have side-effects, buyer beware.

Peter


--
Peter Bowyer
Email: peter@???