On Wed, 20 Feb 2019 23:38:17, Corinna Vinschen  wrote:

> On Feb 20 23:25, Houder wrote:

> > As a final step I rebooted my system (W7, 64 bits, Uising 64-bits Cygwin).
> >
> > I can still connect to the localhost w/ ssh ...
> >
> > But I cannot start and stop the "sshd service" using cygrunsrv.
> >
> > 64-@@ cygrunsrv -E sshd
> > cygrunsrv: Error stopping a service: OpenService:  Win32 error 5:
> > Access is denied.
> >
> > 64-@@ cygrunsrv -S sshd
> > cygrunsrv: Error starting a service: OpenService:  Win32 error 5:
> > Access is denied.
> >
> > I have to use the "services applet" from Windows in order to start and
> > stop the service.
> 
> Elevated shell?

Nope. So I tried an elevated shell ... and surprise, it worked! (both start
and stop). But, I really cannot remember that I ever used an elevated shell
before to start and stop the service ... (yes, now I know).

Thank you,

Henri


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

Reply via email to