delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/09/03:49:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 9 Nov 2005 09:49:44 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to run cygwin sshd as a domain user?
Message-ID: <20051109084944.GO2988@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <BAY104-DAV83700212B0D338CBC0FAABF640 AT phx DOT gbl> <SERRANONIjmMPqngL6w00000229 AT SERRANO DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
In-Reply-To: <SERRANONIjmMPqngL6w00000229@SERRANO.CAM.ARTIMI.COM>
User-Agent: Mutt/1.4.2i

On Nov  8 18:28, Dave Korn wrote:
> Xing Qiu wrote:
> 
> > No, I tried that, and it didn't work.  As far as I understand, cygrunsrv
> > is just a wrapper to run some daemon in the background. I simply can't
> > start sshd with my own user.  Below are the error messages:
> > 
> > $ /usr/sbin/sshd.exe -d
> > debug1: sshd version OpenSSH_4.1p1
> > 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 protocol version 1. Could not load host key
> > Disabling protocol version 2. Could not load host key
> > sshd: no hostkeys available -- exiting.
> > 
> > Here is the result of ls -lh /etc/ssh* :
> > 
> > $ ls -lh /etc/ssh*
> > -rwx------  1 SYSTEM SYSTEM      1.3K Nov  4 15:03 /etc/ssh_config
> > -rw-------  1 SYSTEM SYSTEM       668 Oct 30 19:37 /etc/ssh_host_dsa_key
> > -rw-r--r--  1 SYSTEM SYSTEM       600 Oct 30 19:37
> > /etc/ssh_host_dsa_key.pub 
> > -rw-------  1 SYSTEM SYSTEM       525 Oct 30 19:37 /etc/ssh_host_key
> > -rw-r--r--  1 SYSTEM SYSTEM       329 Oct 30 19:37 /etc/ssh_host_key.pub
> > -rw-------  1 SYSTEM SYSTEM       883 Oct 30 19:37 /etc/ssh_host_rsa_key
> > -rw-r--r--  1 SYSTEM SYSTEM       220 Oct 30 19:37
> > /etc/ssh_host_rsa_key.pub 
> > -rw-r--r--  1 xqiu   mkgroup-l-d 2.8K Nov  4 15:03 /etc/sshd_config
> 
> > Should I go ahead change the ownership of /etc/ssh* ?
> 
> 
> 
>   How about re-running ssh-host-config, which contains code to set the
> perms/ownership correctly?
> 
> 
>   (If you insist on doing it manually, "SYSTEM" is fine for owner, but you
> want "Domain Users" for the group).

No.  The owner must be the same as the one running sshd.  Same for
/var/empty.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

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