public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: gds <gds@chartertn.net>
To: cygwin@cygwin.com
Subject: Re: cygwin permissions problem on a network drive
Date: Fri, 21 Oct 2011 14:17:00 -0000	[thread overview]
Message-ID: <j7rus9$e59$1@dough.gmane.org> (raw)
In-Reply-To: <20111021105510.GC2979@calimero.vinschen.de>

On 10/21/2011 06:55 AM, Corinna Vinschen wrote:
> On Oct 21 12:15, Lemke, Michael  SZ/HZA-ZSW wrote:
>> On Friday, October 21, 2011 10:50 AM
>> Corinna Vinschen wrote:
>>>
>>> On Oct 20 18:58, gds wrote:
>>>> On 10/18/2011 08:52 AM, Lemke, Michael SZ/HZA-ZSW wrote:
>>>>
>>>>>
>>>>> I know this an old thread but I am in exactly the same situation as
>>>>> the OP.  Access with 1.7.7 and before worked fine, 1.7.9 has this
>>>>> problem.  The workaround with explicit noacl option works for me but
>>>>> it is rather awkward as I have to work with a lot of servers.
>>>>>
>>>>> So...
>>>>>
>>>>
>>>>>
>>>>> ...has this happened now?  In a snapshot?  I couldn't find any
>>>>> further information.
>>
>> So from the reply below I take it hasn't been fixed/worked
>> around in a snapshot.  But my experiments show something has
>
> Wrong.  It has been fixed in the snapshot.  1.7.9 tries to open the file
> with WRITE_DAC access which fails on some shares.  The snapshots won't
> do that anymore.
>
>>> I explained what the problem is already.  The buzzword is WRITE_DAC.
>>> Apparently you don't have permissions to change file permissions
>>> on that share.  Cacls should show the exact layout of the file and
>>> directory DACLs.  Does `chmod' work for you?  It shouldn't either.
>>
>> In my case that it true, chmod fails.

For me chmod *appears* to work (no errors on cmd line) but file permissions seen
in "ls -l" don't change nor do they change in windows. Also, in windows, I can't 
change any of my access rights; under file properties/security under "allow" all 
are checked except Full Control and Special permissions, none checked under 
"Deny" and all check marks are gray so I can't change them there either. Anyone 
can create, modify or delete any file, but no one can hide or write-protect any 
file (which would require changing permission/access rights).

AFAIK, this is how it has always been on this share. If this assumption is 
correct, does that mean something changed in cygwin that is causing this 
possible bug?

>
> Good!  That shows that my assumption is correct.
>
>>> You could talk to your admin first to find out if that is by design and
>>> maybe there could be something changed to allow changing permissions.
>>
>> This is by design here.  IT wants it that way.

I think ours is the same way but haven't asked. (Using cygwin for what I am 
doing "not approved" here :().

>
> Then "noacl' is the only way for you.

Yes, no snapshot cygwin1.dll helped. Went back to default. Now have only this in 
/etc/fstab:

O: /my-o-drive	dontcare binary,noacl 0 0

So now access drive with /my-o-drive instead of /cygdrive/o

>
>>> Otherwise, just mount the share with the noacl flag.

Doing it.

>>>
>>> Again, I don't know why this happens.  I can not reproduce this problem
>>> on my NTFS shares, other than by removing the WRITE_DAC permission from
>>> the affected files and directories.  If there's any way to fix or
>>> workaround it in Cygwin, somebody who has that problem has to hunt it
>>> down.
>>>
>>
>> I am willing to try to hunt it down.  What do you want me to check?
>
> Check with your admin and ask how they make sure that you can't set
> permissions.  Did they just create a certain set of inheritable
> permissions or do they use some policy?  That is what I'd like to know.
> The answer, however, will only help me to understand, it will not help
> you to avoid the "noacl" setting.
>
>
> Corinna
>



--
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:[~2011-10-21 14:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-18 12:52 Lemke, Michael  SZ/HZA-ZSW
2011-10-20 22:58 ` gds
2011-10-21  8:50   ` Corinna Vinschen
2011-10-21 10:16     ` Lemke, Michael  SZ/HZA-ZSW
2011-10-21 10:55       ` Corinna Vinschen
2011-10-21 14:14         ` Lemke, Michael  SZ/HZA-ZSW
2011-10-21 14:37           ` Corinna Vinschen
2011-10-21 15:11             ` Lemke, Michael  SZ/HZA-ZSW
2011-10-21 14:17         ` gds [this message]
2011-10-21 14:39           ` Corinna Vinschen
2011-10-21 16:32             ` gds
2011-10-21 17:34               ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2012-01-04 14:25 Markus Leuthold
2012-01-09 13:52 ` Corinna Vinschen
2011-08-02 16:10 spambouncer
2011-08-02 20:54 ` Larry Hall (Cygwin)
2011-07-06  1:43 Bill Metzenthen
2011-07-06  6:31 ` Corinna Vinschen
2011-07-05  2:21 Bill Metzenthen
2011-07-05  8:59 ` Corinna Vinschen
2011-07-05  9:13   ` Corinna Vinschen

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='j7rus9$e59$1@dough.gmane.org' \
    --to=gds@chartertn.net \
    --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).