Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 12 Aug 2002 15:36:40 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Multiple users in fetchmail Message-ID: <20020812153640.R17250@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20020811140204 DOT 3f1780c9 DOT jim DOT george AT blueyonder DOT co DOT uk> <20020812103113 DOT H17250 AT cygbert DOT vinschen DOT de> <20020812132847 DOT GB1928 AT tishler DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020812132847.GB1928@tishler.net> User-Agent: Mutt/1.3.22.1i 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); Better: uid_t orig_uid = getuid (); setuid (ctl->uid); [...] seteuid (orig_uid); Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/