X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 Reply-To: cygwin AT cygwin DOT com Message-ID: <104160609.20140521160119@yandex.ru> To: Nick Urbanik , cygwin AT cygwin DOT com Subject: Re: Installing a program as a Windows service on Windows 8.1 In-Reply-To: <20140521112343.GC24265@nicku.org> References: <20140521112343 DOT GC24265 AT nicku DOT 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 AT yandex DOT 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