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: Tue, 13 Aug 2002 07:20:50 -0400
From: Jason Tishler <jason@tishler.net>
Subject: Re: Multiple users in fetchmail
In-reply-to: <20020812220057.5ffc8a2d.jim.george@blueyonder.co.uk>
To: cygwin@cygwin.com
Mail-followup-to: cygwin@cygwin.com
Message-id: <20020813112050.GB2548@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.3f1780c9.jim.george@blueyonder.co.uk>
 <20020812131500.GA1928@tishler.net>
 <20020812220057.5ffc8a2d.jim.george@blueyonder.co.uk>

Jim,

On Mon, Aug 12, 2002 at 10:00:57PM +0100, Jim George wrote:
> On Mon, 12 Aug 2002 09:15:01 -0400 Jason Tishler wrote:
> > The following (untested and ugly) workaround should work:
> > [snip]
>
> 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?

Is the account that is executing the above cygrunsrv command a member of
the local Administrators group?  If not, then that would explain the
"Access is denied" error.  If so, then I have no idea why cygrunsrv is
failing for you.

BTW, the dani account must have the "Log on as a service" user right in
order for the service to successfully start.  I forgot to add this to my
README.  I have just updated the README which can be found at:

    http://www.tishler.net/jason/software/fetchmail/fetchmail-5.9.13.README

Now back to my workaround.  My suggestion was to just install fetchmail
as a service multiple times -- once for each user.  This is just
temporary until I finish porting the setuid aspects of fetchmail to
Cygwin.  However, you will have to determine why you can't install
fetchmail as a NT service for a single user, before you can attempt to
use this workaround.

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/

