delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/18/13:42:45

X-Spam-Check-By: sourceware.org
Message-ID: <7236-07075@sneakemail.com>
Date: Sun, 18 Feb 2007 19:42:23 +0100
From: "Michael" <bgn7a3m02 AT sneakemail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problem installing cygwin+sshd
In-Reply-To: <45D89462.9040107@kionka.org>
MIME-Version: 1.0
References: <4750-32499 AT sneakemail DOT com> <er5t5e$c7a$1 AT sea DOT gmane DOT org> <86772a380702170134r4cd6d72dwd588e8adcbd1daec AT mail DOT gmail DOT com> <er73an$s0h$1 AT sea DOT gmane DOT org> <er9t87$61v$1 AT sea DOT gmane DOT org> <er9u3d$d74$1 AT sea DOT gmane DOT org> <31389-25452 AT sneakemail DOT com> <45D89462 DOT 9040107 AT kionka DOT org>
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

> ...
> >> > $ /usr/sbin/sshd -D -ddd
> ...
> >> > /var/empty must be owned by root and not group or world-writable.
> ...
> >
> > I've already recognized this message, but as I wanted to chown to
> > root, I was told that there's no "root"-user in the system...
> >
> > Now I "chown"ed to myself:root and now it works -> sshd is up for one
> > connection ("ssh localhost") and ends when closing the connection.
> >
> > Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
> > start sshd as a service, but same error-message as before -> did I
> > come closer to the solution, now I know, that sshd works from
> > commandline?
>
> These sound like the same steps I have gone through.  sshd asks for
> root, but it is actually SYSTEM.  This is what I ended up with on 2
> different working systems:
>
> drwxr-xr-x+ 2 SYSTEM Administrators 0 Sep  5 15:53 /var/empty
> dr-xr-xr-x+ 2 SYSTEM root 0 Jan 10 12:57 /var/empty

ok - this prcondition should be clear now =>
chown SYSTEM:root /var/empty
chmod 755 /var/empty

> But these did not work for me either when I tried running it from the
> command line (instead of a service).  It had to be owned by the current
> user. [...]

ok - same I found out for running sshd from commandline.

> The ownership/permissions were the problem on another system I debugged,
> but this box ended up having a totally different problem.  It had a
> program running with so many connections that Window's netstat program
> would not work anymore.  We rebooted and then sshd worked, as well as
> netstat.  The moral of the story is that if netstat isn't working, don't
> bother trying to run sshd.

unfortunately "netstat" *does* work on that machine (there are only 5
connections to only 2 different nodes open!) ...

michi

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