| delorie.com/archives/browse.cgi | search |
| 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 |
| To: | cygwin AT cygwin DOT com |
| X-Injected-Via-Gmane: | http://gmane.org/ |
| Path: | not-for-mail |
| From: | Philip Flip Kromer <flip AT mrflip DOT com> |
| Newsgroups: | gmane.os.cygwin |
| Subject: | Cygrunsrv unhelpful starting as user not yet granted 'Log on as Service' |
| rights | |
| Date: | Fri, 05 Apr 2002 01:25:47 -0600 |
| Organization: | UT-Austin CNLD |
| Lines: | 29 |
| Message-ID: | <3CAD517B.6030706@mrflip.com> |
| Reply-To: | flip AT mrflip DOT com |
| NNTP-Posting-Host: | tick.ph.utexas.edu |
| Mime-Version: | 1.0 |
| X-Trace: | main.gmane.org 1017991554 27494 128.83.156.199 (5 Apr 2002 07:25:54 GMT) |
| X-Complaints-To: | usenet AT main DOT gmane DOT org |
| NNTP-Posting-Date: | Fri, 5 Apr 2002 07:25:54 +0000 (UTC) |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.9) Gecko/20020311 |
| X-Accept-Language: | en-us, en |
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. Cheers, flip -- 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |