delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/05/02:51:03

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: Fri, 5 Apr 2002 09:50:15 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygrunsrv unhelpful starting as user not yet granted 'Log on as Service' rights
Message-ID: <20020405095015.J1475@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3CAD517B DOT 6030706 AT mrflip DOT com>
Mime-Version: 1.0
In-Reply-To: <3CAD517B.6030706@mrflip.com>
User-Agent: Mutt/1.3.22.1i

On Fri, Apr 05, 2002 at 01:25:47AM -0600, Philip Flip Kromer wrote:
> I have a suggestion for cygrunsrv.
> 
> When you add a Service as a user from the Windows services applet, it 
> will automatically grant "Log on as Service" rights to that user.
> 
> Cygrunsrv does not automagically grant rights, which is probably a good
> thing, but the error message is not specific, which is a bad thing. 
> When you install the service you get no complaint:
> 
>   $ cygrunsrv.exe -I sshd -d "SSHD" -p /usr/sbin/sshd -a "-D" -u me
>   Enter password of user `HOST\flip':
>   Reenter, please:
> 
> When you start the service you get
> 
>   $ cygrunsrv.exe -S sshd
>   cygrunsrv.exe: Error starting a service: StartService:
>   Win32 error 1069: The service did not start due to a logon failure.
> 
> It would be nice if cygrunsrv complained when you _install_ rather than 
> _start_ the service, if possible.
> 
> Also, cygrunsrv should precisely specify the source of the problem -- 
> "The given user does not have 'Log on as Service' rights" -- or at least 
> generically suggest that the user investigate the issue.

That's a good idea.  Go ahead and implement it.  You can grab the
sources by CVS:

cvs -d :pserver:anoncvs AT sources DOT redhat DOT com:/cvs/cygwin-apps co cygrunsrv

and send the patches and a ChangeLog entry to this list.

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/

- Raw text -


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