This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: OpenSSH Strangeness on Windows 2000


On Mon, 13 Nov 2000 09:18:52 +0100, you wrote:

> Lee Thompson wrote:
> > On Mon, 13 Nov 2000 01:11:05 +0100, you wrote:
> > > Try
> > >       setfacl -m u:system:r-- /etc/ssh*
> > >
> > > to add read permission to `system'. I'm assuming that you have a
> > > well defined /etc/passwd file.
> > >
> > > If that doesn't work (or you don't want to work with complex ACLs)
> > > change ownership of the private key files to `system'.
> > >
> > > If that doesn't work either send the contents of your sshd_config file.
> > 
> > Still no joy.
> > 
> > Here is the sshd_config:
> > [...]
> 
> Sorry, I don't know what's going on. Did you ever try `ssh -v'?
> The debug output created by that command might give a hint. If
> that's not enough you should create a batch file which is started
> as `sshd' service and that batch file starts
> 
>     `C:\Cygwin\usr\sbin\sshd -d > C:\cygwin\tmp\sshd.dbgout'
> 
> This works only once each try and you would have to restart the
> service for the next try but afterwards you have lots of output
> from sshd and it probably explains the reason.


Very strange.

I went back to using the special user I created with the correct user rights
(as outlined in the readme).  The user is IUSR_SSHD

$ ls -l
total 32
-rwxrwxrwx   1 544      None          567 Nov 10 15:21 group
drwxrwxrwx   2 544      None         4096 Nov 12 00:24 old
-rwxrwxrwx   1 544      None         1478 Nov 12 15:13 passwd
drwxrwxrwx   2 544      None            0 Nov 10 15:21 postinstall
-rwxrwxrwx   1 544      None          471 Nov 10 15:21 profile
drwxrwxrwx   2 544      None        28672 Nov 10 15:21 setup
-rw-rw-rw-   1 administ None           94 Nov 10 18:50 sgcpwd
-rw-------   1 iusr_ssh None          995 Nov 12 00:25 ssh_config
-rw-------   1 iusr_ssh None          668 Nov 12 00:25 ssh_host_dsa_key
-rw-------   1 iusr_ssh None          613 Nov 12 00:25 ssh_host_dsa_key.pub
-rw-------   1 iusr_ssh None          537 Nov 12 00:25 ssh_host_key
-rw-------   1 iusr_ssh None          342 Nov 12 00:25 ssh_host_key.pub
-rw-------   1 iusr_ssh None         1035 Nov 12 00:25 sshd_config
-rwxrwxrwx   1 544      None        12265 Oct 20 22:32 termcap

The 'd' is cut off but it is the owner of the sshd files.



I logged in to the console *AS* IUSR_SSHD and attempted to run the sshd
binary.

It runs FINE.   I could login, it worked.

If I try to run it as a service under SRVANY, it just refuses to work and does
not write any type of debug output.   (The sshd.exe does appear in task
manager for an instant, however.)


I've been using Windows NT for a long time and this is pretty weird.
-- 
Lee Thompson
thompsonl@logh.net

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]