This is the mail archive of the
mailing list for the Cygwin project.
Cygrunsrv and special Windows virtual accounts "NT SERVICE"
- 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>
- Date: Fri, 7 Dec 2012 13:30:47 +0000
- Subject: Cygrunsrv and special Windows virtual accounts "NT SERVICE"
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" ...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple