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://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
Message-ID: | <42DD4204.2F103E0@dessent.net> |
Date: | Tue, 19 Jul 2005 11:10:12 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
MIME-Version: | 1.0 |
To: | Cygwin List <cygwin AT cygwin DOT com> |
Subject: | Re: 1.5.18-1: /bin/cygrunsrv: Error enumerating services: OpenService: Win32 error 5:,Access is denied. |
References: | <dbj31p$c28$1 AT sea DOT gmane DOT org> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050719104700 DOT 03cdea00 AT pop DOT prospeed DOT net> <dbj49q$gli$1 AT sea DOT gmane DOT org> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050719124547 DOT 03cdd438 AT pop DOT prospeed DOT net> <dbjd56$f53$1 AT sea DOT gmane DOT org> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050719134155 DOT 03ce1bf8 AT pop DOT prospeed DOT net> |
X-Spam-Report: | -5.3/5.0 ---- Start SpamAssassin results * 1.2 SUBJ_HAS_SPACES Subject contains lots of white space * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * -0.6 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Larry Hall wrote: > >$ cygrunsrv -L > >cygrunsrv: Error enumerating services: OpenService: Win32 error 5: > >Access is denied. > > OK, as expected. Are you performing this operation over an ssh connection > using pubkey authentication? If so and you're not also logged into this > machine locally as the same user, that *might* be a problem. When you run cygcheck -L it tries to OpenService() every service to look for Cygwin services, and it will bail if the call fails. I suppose that it's possible that one of your installed services has permissions set such that regular users can't open it. This might be set via permissions on the registry keys, I don't know how the service manager implements security. Anyway, if you're not running this command as an administrator, that might explain it. I suppose cygrunsrv could be modified to not bail on such an error and just continue trying to open the next service. But it would still be good to know why the error is happening in the first place. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |