www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/13/07:19:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: Tue, 13 Aug 2002 07:20:50 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: Multiple users in fetchmail
In-reply-to: <20020812220057.5ffc8a2d.jim.george@blueyonder.co.uk>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20020813112050.GB2548@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <20020811140204 DOT 3f1780c9 DOT jim DOT george AT blueyonder DOT co DOT uk>
<20020812131500 DOT GA1928 AT tishler DOT net>
<20020812220057 DOT 5ffc8a2d DOT jim DOT george AT blueyonder DOT co DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019