X-Spam-Check-By: sourceware.org Message-ID: <4654F764.8090007@cygwin.com> Date: Wed, 23 May 2007 22:24:36 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070308 Fedora/1.5.0.10-2.fc4.remi Thunderbird/1.5.0.10 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ssh gives nt authority/system 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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. >>>>> [....] >>>> >>>> Try password authentication. If you need public key authentication, >>>> you'll either have to wait until 1.7 releases with the subauth >>>> functionality >>>> in it or pull a snapshot now (with all the obvious caveats about >>>> using a >>>> snapshot). >>> >>> As far as I understand the problem is caused from the user that starts >>> up sshd, which is nt_authority/system. >>> In my situation, it's ok to launch manually the ssh daemon, if this >>> solves the problem. >>> >>> 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. Sorry, can't be more specific than that at the moment. I don't have Cygwin handy. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/