delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/30/19:54:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; q=
dns; s=default; b=mQ0nKGhTSTRGkqz7YbvVu67j8YejoBWK6qKniv/ARrF7kH
SvXANQWF+NDwfIg7MDyqZ69KIa1dnJnK87Mp6Qd5S6ZvBGd98eR+ap1XE1Hvlq43
p9Ov5lcUpOmaoBWKa+TF6My2+8IgyKkqtijyzP4eDUIf6DE350Pp5O8lTl0go=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; s=
default; bh=nSxS2qNYvCmrLe081DxP4gtP4GY=; b=uWoxHX9X6XXSoQLbxxoN
kGIXVQPeIeECPNe0uKlhvcl+iTopT5vAxkFFq4nGawsQ5SQF38/g4IWVg5bBKFfw
nXlsgV6+4ckVrxb9urSQQCUKIqz8xmlO/b2AMlrZMXUMMiFP8MYF35DEFcKapYYO
66dvS1m/1E0XHK+Obc2tCrA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: zimbra-new.ceos.com.au
Date: Fri, 1 May 2015 09:54:30 +1000 (EST)
From: John Orr <john DOT orr AT ceos DOT com DOT au>
To: cygwin <cygwin AT cygwin DOT com>
Message-ID: <1550041170.277687.1430438070257.JavaMail.zimbra@ceos.com.au>
In-Reply-To: <20150430105644.GM3657@calimero.vinschen.de>
References: <CAOC2fq8dCzjjZU3eHWWh_h5s7O0M+z482+prWz9HsQWVqAjVng AT mail DOT gmail DOT com> <397346277 DOT 275101 DOT 1430383452664 DOT JavaMail DOT zimbra AT ceos DOT com DOT au> <20150430105644 DOT GM3657 AT calimero DOT vinschen DOT de>
Subject: Re: Trouble with Git 2.1.x pushing to repos over Samba
MIME-Version: 1.0
X-IsSubscribed: yes

Hi Corinna,

> From: "Corinna Vinschen" <corinna-cygwin AT cygwin DOT com>
>> [...]
>> #: john AT johndesktop:/cygdrive/l ; ls -ld .git/objects/
>> drwxr-xr-x 1 john Unix_Group+1000 0 Nov 13 14:13 .git/objects/
>> 
>> (albeit, Corinna, with my group issue still not yet resolved)
> 
> You tried the /etc/group tweak as I suggested in my latest mail in that
> thread, I take it?

Yes, I've tried a few different approaches, without luck thus far.  However, since 
when we started that thread, I already had the group part looking right, and it was only the 
user that was wrong, I figured I should keep trying harder before seeking more help
with the group.
 
>> access(/cygdrive/l/.git, R_OK) returned 0
>> access(/cygdrive/l/.git, W_OK) returned 0
>> access(/cygdrive/l/.git, X_OK) returned -1
>> 
>> The last test is the one run by git, that makes it reject my /cygdrive/l/.git
>> directory.
>> 
>> Not sure if that's relevant, but just in case.
> 
> Thanks for the info.  I found a really dumb bug in my code. 

Thank you for fixing this bug.

In truth - I don't really care much which user/group cygwin reports for my samba
shares - the real issue I've been annoyed by for months (since installing 1.7.34 
the day after it was released, totally ignorant of the major changes it contained...)
was this one with some git shares mounted on samba.  However, since it looked like a 
permissions problem and no one else seemed troubled by it, I figured it best to get my 
house in order with the new permissions setup before seeking help with this issue.  
Having at least got the user looking right (which I assumed git would be using), 
it was time to dig into git.

> P.S.: As a side-note: While this patch (hopefully) reverts this code to
>      work as pre-1.7.34, it seems that the internal Windows access
>      check function is not quite up to the task for Samba shares in
>      scenarios as John's one.  It will always report back the access of
>      the "others" part of POSIX permission bits.  Only with the new
>      mapping of S-1-22-x-y SIDs to real WIndows accounts, or with
>      winbindd-supported mapping, the Windows access check will really
>      work as desired.

That's unfortunate - though now at least (since my "others" has execute permissions),
git is working again for me.  I'll keep digging at my "group" issue as a 
back project.

Thanks heaps for your speedy fix - have a great and well-earned break!

John

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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