X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 7 Dec 2012 17:00:28 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Cygrunsrv and special Windows virtual accounts "NT SERVICE" Message-ID: <20121207160028.GA2374@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <5F8AAC04F9616747BC4CC0E803D5907D043FCB1D AT MLBXv04 DOT nih DOT gov> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5F8AAC04F9616747BC4CC0E803D5907D043FCB1D@MLBXv04.nih.gov> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Dec 7 13:30, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: > Hi all, > > I have a suggestion that cygrunsrv doesn't ask for any password with > the option -u (and -w not provided), if the specified user is like > "NT SERVICE\svcname", where svcname is the service being added. > > Otherwise, cygrunsrv is not self-sufficient for defining a service, > and has to be further supplemented with a "patch" using the native > "SC" command. Yet having every service to run under the privileged > LocalSystem account is not always justified. > > So, instead of having to do a two-step process: > > cygrunsrv -I svcname ... > sc config svcname obj= "NT SERVICE\svcname" > > everything could be done in one command: > > cygrunsrv -I svcname -u "NT SERVICE\svcname" ... What about cygrunsrv -I svcname -u "NT SERVICE\svcname" -p '' ? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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