delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/07/08:31:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_05,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_VC
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EANbuwVCcKEel/2dsb2JhbABEvjcWc4IgAQQSKFEBFRULAwYvExcBDgEEGxqHbgyhMIRJnGKNTQ6CRmEDjTaJaYRxijqCc4Ii
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Cygrunsrv and special Windows virtual accounts "NT SERVICE"
Date: Fri, 7 Dec 2012 13:30:47 +0000
Message-ID: <5F8AAC04F9616747BC4CC0E803D5907D043FCB1D@MLBXv04.nih.gov>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id qB7DVABM020755

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" ...

Thanks,

Anton Lavrentiev
Contractor NIH/NLM/NCBI

See: http://msdn.microsoft.com/en-us/library/ms143504.aspx#New_Accounts


--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019