delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/15/10:33:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Fri, 15 Jul 2005 10:33:25 -0400
From: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
Subject: Re: chmod suddenly ceased to work on old files - NEW FINDINGS
To: <FischRon DOT external AT infineon DOT com>, <cygwin AT cygwin DOT com>
Reply-to: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
Message-id: <101201c5894a$2a0c6dd0$3e0010ac@wirelessworld.airvananet.com>
MIME-version: 1.0
References: <25F7D2213F14794A8767B88203EA2BC9240CD6 AT mucse201 DOT eu DOT infineon DOT com>

----- Original Message ----- 
From: <FischRon DOT external AT infineon DOT com>
To: <Pierre DOT Humblet AT ieee DOT org>; <cygwin AT cygwin DOT com>
Sent: Friday, July 15, 2005 4:15 AM
Subject: RE: chmod suddenly ceased to work on old files - NEW FINDINGS

>> Now, there are still three mysteries.
>> The first is why having uid = 400 makes any difference for ssh.
>> As you can see, Windows doesn't care a bit about your uid,
>> nor about upper/lower cases.
>
> Windows doesn't, but maybe ssh. This (OpenSSH) is a cygwin application.
>
> Note that I installed OpenSSH long ago, before having installed cygwin.
> I can see that OpenSSH installed in its directory some cygwin stuff,
> such as mkpasswd.exe and cygwin1.dll, so I guess it has created a
> minimal "cygwin environment" to work. Maybe in this minimal
> environment, it assumed that it works for user id 400. But when I run
> it now, ssh suddenly knows that it is on a computer with a full blown
> cygwin installed, so it looks at /etc/passwd for the uid. When it is 
> different, ssh thinks that the current user is not the one for whom the
> id_rsa file was generated, so it is not granted to use it.

> Could this be an explanation?

Are you saying that your ssh may use a different cygwin1.dll than the
rest of the system? If so, delete it. In fact I would recommend completely
removing the old OpenSSH stuff (you can keep the id_rsa file) and 
installing the latest ssh version.

About your other problems, the hypothesis that network administrators
have altered the file permissions is quite plausible. The fact that
h:\tmp\tg.pl  is on a network drive also makes it harder to determine
what's the expected behavior.
 
Pierre



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

- Raw text -


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