Re: [Exim] unable to set gid or uid

Góra strony
Delete this message
Reply to this message
Autor: Norihisa Washitake
Data:  
Dla: exim-users
Temat: Re: [Exim] unable to set gid or uid
Hi Philip,

Thank you for your help.

On Mon, 8 Apr 2002, Philip Hazel wrote:
> On Mon, 8 Apr 2002, Norihisa Washitake wrote:
>
> > > % ls -lA /usr/local/exim/bin/
> > > > lrwxrwxrwx  1 root root      12  Apr  8 00:09 exim -> exim-4.02-10
> > > > -rwsr-xr-x  1 root root  533266  Apr  8 00:09 exim-4.02-10
> > > > -rwxr-xr-x  1 root root  533266  Apr  8 04:15 exim-4.02-10.daemon


> > Well, I mean, I tried both setuid'ed version and not-setuid'ed version
> > and both failed. So I thought it's not because of setuid problems.
>
> I'm sure it must be some kind of setuid problem. Do you start the daemon
> as root? Have you ever HUPped the daemon? Are those two binaries
> compiled with the same setting for BIN_DIRECTORY?


I'm starting the daemon as root.
I sometimes HUP the daemon, but nothing changes.
Two binaries are identical, because I just copied exim-4.02-10.daemon
from exim-4.02-10 by 'cp' command. So time stamps are different.

(Of course, exim-4.02-10 is the original version, installed by
'make install' command.)


Now, what I think strange is, that exim can deliver mails to users'
home directories under users' ownership with 700 permission.
It seems exim can setuid to some user in appendfile driver, but
can not in redirect driver?


Regards,
--
Norihisa Washitake <nori@???>