Cygrunsrv and special Windows virtual accounts "NT SERVICE"

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Dec 7 16:00:00 GMT 2012


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



More information about the Cygwin mailing list