This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygrunsrv unhelpful starting as user not yet granted 'Log on as Service' rights


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@sources.redhat.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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]