Re: [Exim] What user on startup?

Inizio della pagina
Delete this message
Reply to this message
Autore: Philip Hazel
Data:  
To: Niels Ott
CC: exim-users
Oggetto: Re: [Exim] What user on startup?
On Sun, 2 Apr 2000, Niels Ott wrote:

> I need a Perl-script looking up data from /etc/shadow. This works quite
> well as root but when the script gets startet from Exim, it cannot
> access the file.
>
> I do not fully understand this. I inserted the following lines into
> exim.conf:
> --- snip ---
> perl_at_start = true
> perl_startup = do '/etc/exim/the_script.pl'
> --- snap ---
>
> That's okay by that, but I don't know to which user the Exim process
> belongs at that time.


If Exim is setuid root, it is running as root at that time. However,
when you later actually make use of the Perl functions, it may not be
running as root any more. Maybe that's your problem. When do you
actually use the functions?

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.