X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=gM3+r3mYeYNN6tRV
	Rq63r5TELgWNkuzBlk9I5YwBTAXx53OSeD5Yz43lMma2A6Yc/SU+t9ZZSbYakhir
	V5YNkqBybsPZEiEo4l4KWcdZ7yhZh51GTO+WPfrXS7zMhoo9uiXGd/v6D+IjSn0w
	AnTw1GKg2yXukt1bPZtexCipYDI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=8ypYQ9eesQwRcjkfnBXP+L
	y+Slo=; b=qUJZfTvwgHA+JNQIcsogv6z1Uw9eJwHofl2zXNAmzQWATJTH0Zyzcr
	/qmj9zoczApuD4V3XiEGvvBqe9op7VWpnATyHOHTKNgRCQZNJf270x0bbeu6mzcx
	hDPRq5+FMSRiwHLFK85RRbdyDpStwzjZT2/Tghygi136JlczNoVA8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Wed, 21 May 2014 16:01:19 +0400
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <104160609.20140521160119@yandex.ru>
To: Nick Urbanik <nicku@nicku.org>, cygwin@cygwin.com
Subject: Re: Installing a program as a Windows service on Windows 8.1
In-Reply-To: <20140521112343.GC24265@nicku.org>
References: <20140521112343.GC24265@nicku.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Nick Urbanik!

> I have written a Perl program that I want to run as a service on
> Windows 8.1.  However, when I type:
> cygrunsrv -I NAME -p /path/to/NAME

> Note: NAME has execute permissions, and can be run.

> I get the error message:
> cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5:
> Access is denied.

> I am doing this from an account that is shown as "Administrator".  I
> am not very familiar with Windows; I only use it to solve problems
> that other users of it are having.  Any suggestions are most welcome.

That's not enough. Even "administrator" don't have full rights by default.
You have to run this command from elevated prompt.
Be aware though,  that I've encountered an issue with Win8, where ANY service 
I install that is not standard, turn into "manual start" and no longer run 
until someone log in to the system.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 21.05.2014, <16:00>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

