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: <006301c2cd55$ee0eb250$78d96f83@pomello>
From: "Max Bowsher" <maxb@ukf.net>
To: "Marc Bejarano" <beej@alum.mit.edu>
Cc: <cygwin@cygwin.com>
References: <5.2.0.9.2.20030204105352.034ad8d0@127.0.0.1> <5.2.0.9.2.20030204135959.01b8f160@127.0.0.1>
Subject: Re: sshd can't do publickey auth with .ssh linked to   /cygdrive/c/rest/of/path
Date: Wed, 5 Feb 2003 20:34:06 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Marc Bejarano wrote:
> i'm still not subscribed to this list so i would be grateful if i
> could be left on the cc: line of this thread.
....
> new error:
> Authentication refused: bad ownership or modes for directory /
> 
> perms:
> drwxrwxr-x+  10 Administ Administ        0 Feb  4 13:58 //
> 
> ok.  that's ridiculous.  i'm not changing the owner of / just so
> it'll be more convenient to share the default key directory that scrt
> uses. 
> 
> the real problem is that openssh checks ownership and modes up the
> tree 
> from the authorized_keys2 file until it hits your home dir.  since my
> home dir is under /home, it never hits that.

How about mounting the SecureCRT keys directory to /home/you/.ssh ?
Then, as far as sshd is concerned, it _is_ under your home dir.

$ mount -b -u C:\path\to\securecrt\keys\dir /home/you/.ssh



Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

