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 09:15:01 -0400 From: Jason Tishler Subject: Re: Multiple users in fetchmail In-reply-to: <20020811140204.3f1780c9.jim.george@blueyonder.co.uk> To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20020812131500.GA1928@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i References: <20020811140204 DOT 3f1780c9 DOT jim DOT george AT blueyonder DOT co DOT uk> Jim, 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. See my next post... > I also don't appear to be able to install/run to instances of the same > service under different user IDs. The following (untested and ugly) workaround should work: $ cygrunsrv --install "fetchmail for $USERNAME1" --path /usr/bin/fetchmail --env HOME=$HOME1 --user "$USERDOMAIN\\$USERNAME1" --args '--daemon 300 --nodetach' --shutdown $ cygrunsrv --install "fetchmail for $USERNAME2" --path /usr/bin/fetchmail --env HOME=$HOME2 --user "$USERDOMAIN\\$USERNAME2" --args '--daemon 300 --nodetach' --shutdown $ cygrunsrv --install "fetchmail for $USERNAME3" --path /usr/bin/fetchmail --env HOME=$HOME3 --user "$USERDOMAIN\\$USERNAME3" --args '--daemon 300 --nodetach' --shutdown ... where: $USERNAMEn => user n's user name $HOMEn => user n's home directory Jason -- 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/