This is the mail archive of the
cygwin
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"
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