This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygrunsrv --install <svc> --user <user>: avoid having to enter the user's password
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Irfan Adilovic <irfanadilovic at gmail dot com>, cygwin at cygwin dot com
- Date: Thu, 23 May 2019 00:31:06 +0300
- Subject: Re: cygrunsrv --install <svc> --user <user>: avoid having to enter the user's password
- References: <CAJoYywWVTtoq1dN9hy5oxvdYzFN0qk70s-UNX198rZYiULreVA@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
Greetings, Irfan Adilovic!
> (All actions here assume an elevated mintty terminal)
> I have the need to automate the installation of autossh as a windows
> service (=> several dozen autossh services) and when installing as a
> local user, the password prompt is an issue.
This is not an issue, this is a requirement of the OS.
> Is there a way to add windows services with cygrunsrv from an elevated
> mintty bash shell to run as a local user, somehow without requiring
> that local user's password each time the service is installed?
Nothing can be done about it, except providing the password it is asking for.
--
With best regards,
Andrey Repin
Thursday, May 23, 2019 0:29:04
Sorry for my terrible english...
--
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