delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/05/14:03:52

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: Thu, 5 Aug 2004 20:03:57 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem starting sshd as a service
Message-ID: <20040805180357.GB31522@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20040804123351 DOT 75534 DOT qmail AT web11703 DOT mail DOT yahoo DOT com> <200408051007 DOT 49817 DOT gernot DOT hillier AT siemens DOT com> <20040805083819 DOT GC24647 AT cygbert DOT vinschen DOT de> <200408051053 DOT 09293 DOT gernot DOT hillier AT siemens DOT com> <20040805085922 DOT GE24647 AT cygbert DOT vinschen DOT de> <ceth2k$gdq$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <ceth2k$gdq$1@sea.gmane.org>
User-Agent: Mutt/1.4.2i

On Aug  5 07:45, Andrew DeFaria wrote:
> Corinna Vinschen wrote:
> 
> >Have a look into the script, right at the end. chown is only called if 
> >sshd has been installed as service. Otherwise the script assumes that 
> >sshd is going to be run from some user account in a console window. In 
> >that case, chown'ing to system wouldn't make much sense.
> 
> But would it hurt to chown even if sshd is going to be run from some 
> user account in a console window? (Personally I find that assumption 
> odd. Does anybody run sshd from some user account in a console window?) 

Actually, running all process under the same account and having this
account owning all files is probably some sort of default.  Just
starting an sshd in a console window, running under the only account
which should be able to log on from remote (using pubkey authentication)
is probably the easiest way to get an sshd up and running.  And I'm
pretty sure there is a non-trivial amount of people running sshd that way.
So, while always running chown from ssh-host-config would probably
simplify the script, but I don't think that's the way to go.  The problem
is, that the script works for me(tm) and so I'm still curious what
happens on other machines.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto: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