This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multiple users in fetchmail

On Mon, Aug 12, 2002 at 09:28:48AM -0400, Jason Tishler wrote:
> On Mon, Aug 12, 2002 at 10:31:13AM +0200, Corinna Vinschen wrote:
> > On Sun, Aug 11, 2002 at 02:02:04PM +0100, Jim George wrote:
> > > in the Linux version of fetchmail I was able to run the daemon as
> > > root and fetch/deliver mail (through procmail) for multipl users.
> > > Reading the man/README/archives of this list, I don't appear to have
> > > that option anymore.  I also don't appear to be able to install/run
> > > to instances of the same service under different user IDs.
> > 
> > Try running fetchmail in daemon mode as service under SYSTEM account.
> Grep-ing the fetchmail code, I get the following:
>     $ grep 'set.*uid' *.c
>     sink.c:    seteuid(ctl->uid);
>     sink.c:    seteuid(0);
> So, I presume that I will have to change the second hit above to:
>     seteuid(18);


      uid_t orig_uid = getuid ();
      setuid (ctl->uid);


      seteuid (orig_uid);


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]