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

X-Spam-Check-By: sourceware.org
Message-ID: <11548-28910@sneakemail.com>
Date: Sun, 18 Feb 2007 21:55:29 +0100
From: "Michael" <bgn7a3m02 AT sneakemail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problem installing cygwin+sshd
In-Reply-To: <86772a380702181254l5498af9ek75a1b4d2ca9a2e21@mail.gmail.com>
MIME-Version: 1.0
References: <4750-32499 AT sneakemail DOT com> <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> <29966-88389 AT sneakemail DOT com> <era6mj$tt4$2 AT sea DOT gmane DOT org> <29969-23293 AT sneakemail DOT com> <eraa5b$9vr$1 AT sea DOT gmane DOT org> <86772a380702181254l5498af9ek75a1b4d2ca9a2e21 AT mail DOT gmail DOT com>
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

> Michael wrote:
> [snip]
> >> Try to get rid of the ACEs that cause the "+" sign at the end of the ls
> > listing.[...]
> >
> > but I don't know how to get rid of the "+". What is this "+" (???)
> > called, so I can search for it and find out what to do?
>
> It's not important, here's how my /var/empty looks (with sshd working fine):
>
> $ ll /var
> ...
> drwxr-xr-x+  2 SYSTEM  None   0 May 20  2004 empty/
>
> It should be clear by now that you messed something pretty bad, and we haven't
> found what it was from your reports, why don't you start all over again...
> rename your Cygwin directory and install it again, just run the sshd config
> script and don't touch anything else.

ok - here listed what I did (sorry for the long listing):
---cut---
01. $ cygrunsrv -R sshd
02. remove registry-keys: HK(CU|LM)->SOFTWARE->Cygnus Solutions
03. remove windows/user sshd
04. rename c:\cygwin to c:\cygwin_1
05. run http://www.cygwin.com/setup.exe from user ladmin member of
group local admins
- install from internet
- install for all users
- added packages: openssh, tcp_wrappers
06. $ mkpasswd -cl > /etc/passwd
07. $ mkgroup -l > /etc/group
08. $ ssh-host-config
- privilege separation -> yes
- install sshd as service -> yes
- CYGWIN=ntsec tty
09. $ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.
10. $ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
11. $ ls -l /etc/ssh*
-rwxr-x--- 1 SYSTEM Users 1418 Feb 18 21:08 /etc/ssh_config
-rw------- 1 SYSTEM Users  668 Feb 18 21:08 /etc/ssh_host_dsa_key
-rw-r--r-- 1 SYSTEM Users  611 Feb 18 21:08 /etc/ssh_host_dsa_key.pub
-rw------- 1 SYSTEM Users  984 Feb 18 21:08 /etc/ssh_host_key
-rw-r--r-- 1 SYSTEM Users  648 Feb 18 21:08 /etc/ssh_host_key.pub
-rw------- 1 SYSTEM Users 1675 Feb 18 21:08 /etc/ssh_host_rsa_key
-rw-r--r-- 1 SYSTEM Users  403 Feb 18 21:08 /etc/ssh_host_rsa_key.pub
-rw-r--r-- 1 SYSTEM Users 3039 Feb 18 21:08 /etc/sshd_config
12. $ cygcheck -f /usr/bin/cygz.dll /usr/bin/cygcrypt-0.dll
/usr/bin/cygcrypto-0.9.8.dll
crypt-1.1-1
openssl-0.9.8d-1
zlib-1.2.3-2
13. $ cygrunsrv -V -Q sshd
Service             : sshd
Display name        : CYGWIN sshd
Current State       : Stopped
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="ntsec tty"
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : LocalSystem
14. $ ls -l /var
total 0
drwxrwx---+ 3 ladmin Users          0 Feb 18 21:38 cache
drwxr-xr-x+ 2 SYSTEM Administrators 0 Feb 18 21:40 empty
drwxrwx---+ 3 ladmin Users          0 Feb 18 21:38 lib
drwxrwx---+ 2 ladmin Users          0 Feb 18 21:40 log
drwxrwx---+ 2 ladmin Users          0 Feb 18 21:38 run
drwxrwx---+ 2 ladmin Users          0 Feb 18 21:38 tmp
15. $ mv /var/empty/ /var/empty_ori
16. $ mkdir /var/empty
17. $ chmod 755 /var/empty
18. $ ls -ld /var/empty
drwxr-xr-x+ 2 ladmin Users 0 Feb 18 21:50 /var/empty
19. $ /usr/sbin/sshd -D
20. $ ssh localhost date # (from 2nd cygwin-window)
ladmin AT localhost's password:
Sun Feb 18 21:52:18 WEST 2007
---cut---

did I do anything wrong?
can I give you some more information?

thanks for yor assistance!!!
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