public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: John Orr <john.orr@ceos.com.au>
To: cygwin <cygwin@cygwin.com>
Subject: Re: Trouble with Git 2.1.x pushing to repos over Samba
Date: Thu, 30 Apr 2015 23:54:00 -0000	[thread overview]
Message-ID: <1550041170.277687.1430438070257.JavaMail.zimbra@ceos.com.au> (raw)
In-Reply-To: <20150430105644.GM3657@calimero.vinschen.de>

Hi Corinna,

> From: "Corinna Vinschen" <corinna-cygwin@cygwin.com>
>> [...]
>> #: john@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

      parent reply	other threads:[~2015-04-30 23:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-30  4:26 Michael Enright
2015-04-30  8:44 ` John Orr
2015-04-30  8:54   ` John Orr
2015-04-30 10:56   ` Corinna Vinschen
2015-04-30 11:11     ` Michael Enright
2015-04-30 11:17       ` Corinna Vinschen
2015-04-30 15:02         ` Michael Enright
2015-04-30 15:10           ` Corinna Vinschen
2015-04-30 23:54     ` John Orr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1550041170.277687.1430438070257.JavaMail.zimbra@ceos.com.au \
    --to=john.orr@ceos.com.au \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).