delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/03/19:26:38

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 3 Feb 2003 19:26:06 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Marc Bejarano <beej AT alum DOT mit DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: sshd can't do publickey auth with .ssh linked to /cygdrive/c/rest/of/path
In-Reply-To: <5.2.0.9.2.20030203155334.037e0e60@127.0.0.1>
Message-ID: <Pine.GSO.4.44.0302031922390.24195-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 3 Feb 2003, Marc Bejarano wrote:

> hi.  i'm not subscribed to this list so i would be grateful if i could be
> left on the cc: line of this thread.
>
> 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.  sshd logs:
> ==
> debug1: userauth-request for user beej service ssh-connection method publickey
> debug1: attempt 1 failures 1
> debug1: test whether pkalg/pkblob are acceptable
> debug1: temporarily_use_uid: 1003/544 (e=18/18)
> debug1: trying public key file /home/beej/.ssh/authorized_keys
> debug1: restore_uid: (unprivileged)
> debug1: temporarily_use_uid: 1003/544 (e=18/18)
> debug1: trying public key file /home/beej/.ssh/authorized_keys2
> Authentication refused: bad ownership or modes for directory /cygdrive/c
> ==
> so it isn't happy about /cygdrive/c.  here's how cygwin sees that "dir":
> ==
> $ ls -ld /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?
>
> tia,
> marc

Marc,

Before you do anything as drastic as a "chmod -R a+rx /cygdrive/c", try
the following:

$ mv /etc/passwd /etc/passwd-old
$ mv /etc/group /etc/group-old
$ mkpasswd -l > /etc/passwd
$ mkgroup -l > /etc/group

If you are a domain user, also add

$ mkpasswd -d -u yourusername >> /etc/passwd
$ mkgroup -d >> /etc/group

And see if this helps.

In other words, your /etc/{passwd,group} files seem to be incomplete, so
you need to regenerate them.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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