Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3FB8328D.6010507@curioussymbols.com>
Date: Mon, 17 Nov 2003 13:29:33 +1100
From: John Pye <john@curioussymbols.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.5.5: sshd problem
References: <3FB42AA5.9090302@curioussymbols.com> <3FB4359A.3030204@student.unsw.edu.au> <Pine.GSO.4.56.0311132055480.522@slinky.cs.nyu.edu>
In-Reply-To: <Pine.GSO.4.56.0311132055480.522@slinky.cs.nyu.edu>
X-Enigmail-Version: 0.76.7.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Thanks for the extra tips, Igor. Do any of these results look strange to 
you?

Igor Pechtchanski wrote:

>That's the default mode Windows gives it.  This should work, but somehow
>doesn't...  Can sshd get to all the necessary files and directories?  Look
>at the permissions on /etc and the files in it, as well as /bin.
>
>  
>
I tried an ls -l /etc and found

-rwxr-xr-x    1 SYSTEM   None         1159 Nov 13 19:02 ssh_config
-rw-------    1 SYSTEM   None          668 Nov 13 19:02 ssh_host_dsa_key
-rw-r--r--    1 SYSTEM   None          599 Nov 13 19:02 ssh_host_dsa_key.pub
-rw-------    1 SYSTEM   None          524 Nov 13 19:02 ssh_host_key
-rw-r--r--    1 SYSTEM   None          328 Nov 13 19:02 ssh_host_key.pub
-rw-------    1 SYSTEM   None          887 Nov 13 19:02 ssh_host_rsa_key
-rw-r--r--    1 SYSTEM   None          219 Nov 13 19:02 ssh_host_rsa_key.pub
-rw-r--r--    1 SYSTEM   None         2427 Nov 13 19:03 sshd_config

That looks OK I thought... or is it? Does 'SYSTEM' need to be able to 
read those files, or does 'sshd'?

I also had a look at /etc/bin and it's all  owned by john.Users, for example

-rwxrwxrwx    1 john     Users       19456 Feb 20  2002 split.exe
-rwxrwxrwx    1 john     Users       68608 Nov  6 02:47 ssh-add.exe
-rwxrwxrwx    1 john     Users       57856 Nov  6 02:47 ssh-agent.exe
-rwxrwxrwx    1 john     Users       17333 Nov  6 02:47 ssh-host-config
-rwxrwxrwx    1 john     Users       75776 Nov  6 02:47 ssh-keygen.exe
-rwxrwxrwx    1 john     Users      130048 Nov  6 02:47 ssh-keyscan.exe
-rwxrwxrwx    1 john     Users        6266 Nov  6 02:47 ssh-user-config
-rwxrwxrwx    1 john     Users      223232 Nov  6 02:47 ssh.exe
-rwxrwxrwx    1 john     Users       18944 Sep 21 06:32 ssp.exe
-rwxrwxrwx    1 john     Users       87552 Aug 26  2002 states.exe
-rwxrwxrwx    1 john     Users       23552 Sep 21 06:32 strace.exe

That could be a problem perhaps? Should the 'Users' group contain 'sshd' 
or is access for sshd to the /bin executables handled somehow else?

>Ok, looks like all your mounts are system mounts, unless you simply don't
>have the permission to read the registry keys for the SYSTEM user...
>  
>
That seems strange. My home computer has a couple of mounts when I run 
that command, but this system has none. However, it works fine locally 
(compiling, listing files, /cygdrive/c, etc). I haven't ever tinkered 
with the mounts, so I wonder how that comes to be... Couldn't be related 
to mingw/msys could it?

John


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

