delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/18/12:56:56

X-Spam-Check-By: sourceware.org
Message-ID: <29966-88389@sneakemail.com>
Date: Sun, 18 Feb 2007 18:56:03 +0100
From: "Michael" <bgn7a3m02 AT sneakemail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problem installing cygwin+sshd
In-Reply-To: <era0l8$ahk$1@sea.gmane.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> <era0l8$ahk$1 AT sea DOT gmane 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

Thorsten:
> > > > /var/empty must be owned by root and not group or world-writable.
> > > > --cut--
> > > > $ ssh localhost
> > > > ssh: connect to host localhost port 22: Connection refused
> > > > --cut--
> > > >
> > > > > and "strace  /usr/sbin/sshd -D"
> > > >
> > > > see attached file.
> > > >
> > > > where do I have to look at in the trace-file?
> > >
> > > Nowhere. "/var/empty must be owned by root and not group or world-
> > > writable" - that's pretty clear, isn't it?!
> >
> > 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?
>
> It says "and not group or world-writable" - that's pretty clear, isn't
> it?!
>
I didn't mention, that I checked this too (that was the easier part,
compared to user "root" ;-)).

$ ls -ld /var/empty/
drwx--x--x+ 2 SYSTEM root 0 Feb 15 03:02 /var/empty/

thanks
michael

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