Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 12 Aug 2002 22:00:57 +0100
From: Jim George <jim.george@blueyonder.co.uk>
To: cygwin@cygwin.com
Subject: Re: Multiple users in fetchmail
Message-Id: <20020812220057.5ffc8a2d.jim.george@blueyonder.co.uk>
In-Reply-To: <20020812131500.GA1928@tishler.net>
References: <20020811140204.3f1780c9.jim.george@blueyonder.co.uk>
	<20020812131500.GA1928@tishler.net>
Organization: JSDM Services Ltd
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

On Mon, 12 Aug 2002 09:15:01 -0400
Jason Tishler <jason@tishler.net> wrote:

> 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,

	when ever I try the following I get the subsequent error.

	I have set the user 'dani' to be a member of Users, Power Users, and Administrators (I did this progressively trying to install fetchmail at each every change).

cygrunsrv --install "fetchmail for dani" --path /usr/bin/fetchmail --env HOME
=/home/dani --user "GATEWAY\\dani" --args '--daemon 300 --nodetach' --shutdown
cygrunsrv: Error installing a service: OpenSCManager:  Win32 error 5:
Access is denied.

	Do you have any ideas?

Regards,

Jim

--
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/

