problem installing cygwin+sshd
Daniel P. Kionka
dan@kionka.org
Sun Feb 18 18:02:00 GMT 2007
Michael wrote:
...
>> > $ /usr/sbin/sshd -D -ddd
...
>> > /var/empty must be owned by root and not group or world-writable.
...
>> 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?
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
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. I renamed it and did a mkdir so I could continue debugging.
Later I put the system one back after renaming the command line version
in case I have to debug it again later, and now have:
drwxr-xr-x+ 2 SYSTEM root 0 Jan 11 18:06 empty
drwxr-xr-x+ 2 VPSAdmin Users 0 Jan 12 09:54 empty.cmdline
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.
--
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/
More information about the Cygwin
mailing list