This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: problem installing cygwin+sshd
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@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/