delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/04/14:24:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.2.0.9.2.20030204105352.034ad8d0@127.0.0.1>
X-Sender: (Unverified)
Date: Tue, 04 Feb 2003 11:13:14 -0800
To: "Igor Pechtchanski" <pechtcha AT cs DOT nyu DOT edu>
From: Marc Bejarano <beej AT alum DOT mit DOT edu>
Subject: Re: sshd can't do publickey auth with .ssh linked to
/cygdrive/c/rest/of/path
Cc: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.44.0302031922390.24195-100000@slinky.cs.nyu.edu
>
References: <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030203155334 DOT 037e0e60 AT 127 DOT 0 DOT 0 DOT 1>
Mime-Version: 1.0

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.

At 04:26 PM 2/3/2003, Igor Pechtchanski wrote:
 >On Mon, 3 Feb 2003, Marc Bejarano wrote:
 >> i tried to link my ~/.ssh to "/cygdrive/c/Documents and
 >> Settings/<username>/Application Data/Van Dyke Technologies/SecureCRT/"
 >> because i thought it was the most straight-forward way to share my identity
 >> files.  this breaks incoming publickey auth to cygwin openssh sshd.

 >> Authentication refused: bad ownership or modes for directory /cygdrive/c

 >> d---------   15 65535    65535           0 Feb  3 04:11 /cygdrive/c/

 >> so my question: is there a way to make this work?  can i change the
 >> mode/ownership bits on a /cygdrive mountpoint?  or can i tell the sshd to
 >> be less security-conscious?

 >Before you do anything as drastic as a "chmod -R a+rx /cygdrive/c"

i'm not convinced even drastic measures will help.  sshd thinks /cygdrive/c 
is a directory.  it is worried about the modes of the dir, 
itself.  unfortunately, even when i'm logged in as user Administrator, i 
can't seem to make any changes to it:
[Administrator AT beej-lap]/:{1}:$ chmod 755 /cygdrive/c
chmod: changing permissions of `/cygdrive/c': Permission denied

and on the windoze side of things, i don't know how to set permissions for 
a drive.

btw: i am not a domain user.

 >try the following:
 >
 >$ mv /etc/passwd /etc/passwd-old
 >$ mv /etc/group /etc/group-old
 >$ mkpasswd -l > /etc/passwd
 >$ mkgroup -l > /etc/group

 >And see if this helps.

nope :(

 >In other words, your /etc/{passwd,group} files seem to be incomplete, so
 >you need to regenerate them.

can you try making your .ssh link to a /cygdrive/c path and see if it works 
for you?

tia,
marc


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019