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

Góra strony
Delete this message
Reply to this message
Autor: Bernd Jendrissek
Data:  
Dla: exim-users
Temat: Re: [exim] Running exim daemon without any root privileges

Peter Bowyer wrote:
> 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.
>

Thanks, that works a treat. In fact it's perfect for a "make check"
type target, where I can specify -DEXIM_USER=`id -u`.