delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/24/03:52:32

X-Spam-Check-By: sourceware.org
Mime-Version: 1.0 (Apple Message framework v752.3)
In-Reply-To: <4654F764.8090007@cygwin.com>
References: <9C98DAB8-F241-4054-B2E3-15DD359CE860 AT aleagames DOT com> <4649BE48 DOT 3000809 AT cygwin DOT com> <22EE15BB-D2A5-404D-A8E3-A7CEC602F39E AT aleagames DOT com> <46547D01 DOT 5070200 AT cygwin DOT com> <AA3BB3C9-C258-4C86-91BB-9F031059F788 AT aleagames DOT com> <4654F764 DOT 8090007 AT cygwin DOT com>
Message-Id: <76C7523A-15EA-4C13-91A4-A5BD2177A517@aleagames.com>
Subject: Re: ssh gives nt authority/system
Date: Thu, 24 May 2007 09:52:16 +0200
To: cygwin AT cygwin DOT com
X-Mailer: Apple Mail (2.752.3)
From: Lucio Cosmo <lucio DOT cosmo AT gmail DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Il giorno 24/mag/07, alle ore 04:24, Larry Hall (Cygwin) ha scritto:

> Lucio Cosmo wrote:
>>
>> Il giorno 23/mag/07, alle ore 19:42, Larry Hall (Cygwin) ha scritto:
>>
>>> Lucio Cosmo wrote:
>>>>
>>>> Il giorno 15/mag/07, alle ore 16:06, Larry Hall (Cygwin) ha  
>>>> scritto:
>>>>
>>>>> Lucio Cosmo wrote:
>>>>>> Hello All.
>>>>>> [....]
>>>>
>>>> If so, how can it be done ?
>>>
>>> Just run it.  But there's no reason you can't run it as a service  
>>> under
>>> a different user.  You loose the ability for the service to  
>>> change to
>>> another user (so you'll always be the user that the service  
>>> started as,
>>> in every way) but since you're willing to give that up already, I  
>>> don't
>>> see that as an issue.
>>
>> Not so much expert in bash commands and enviroment.
>> How can it be done ?
>>
>> "cygrunsrv --start sshd" does not solve, obviously :)
>
> If you've already run ssh-host-config, then doing the above is just  
> going
> to start the service with the user specified at install time, either
> SYSTEM or sshd_server.  Your best bet is to uninstall the service and
> reinstall it specifying the user you want.  Include the password too.
>
> 'cygrunsrv --uninstall sshd' should uninstall the current service.
> See 'ssh-host-config' for how to invoke 'cygrunsrv' to install with a
> particular user.

 > cygrunsrv --remove sshd (not --uninstall :) )

 > cygrunsrv --install sshd --user lucio -p /usr/sbin/sshd -a -D -y  
tcpip
Enter password:
( done )

 > cygrunsrv --start sshd
cygrunsrv: Error startin a service: StatService: Win32 error 1069:
The service is not started due to an access error (string badly  
translated from italian).


I also tried running

 >/usr/sbin/sshd
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocolo version 1: could not load host key
Disabling protocolo version 2: could not load host key

to stupid to do ? if not, can someone tell me the correct arguments ?  
it would more than enough for me...

> Sorry, can't be more specific than that at the moment.
> I don't have Cygwin handy. ;-)

I tried, but I have difficulties in moving through commands and  
shells :(
I'm only a C / C++ developer...

Thanks for your patience.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019