delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/17/08:07:15

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 17 Jun 2011 14:06:23 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Create file fails on network drives in cygwin-1.7.9-1
Message-ID: <20110617120623.GC5087@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <BANLkTim75avYGKmYhzzdEmbqjt5Dfu1WNg AT mail DOT gmail DOT com> <20110616124954 DOT GY12140 AT calimero DOT vinschen DOT de> <BANLkTin1t2DZedqY7TBWDbPAW_ra=oiuzg AT mail DOT gmail DOT com> <20110616145834 DOT GA21703 AT calimero DOT vinschen DOT de> <BANLkTi=JJRSX8ZbxygBDEYiYPCz9ScPP9Q AT mail DOT gmail DOT com> <20110617095306 DOT GB5087 AT calimero DOT vinschen DOT de> <BANLkTikkb+ZUKT2J0y9HkjELBN0qu3ejKA AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <BANLkTikkb+ZUKT2J0y9HkjELBN0qu3ejKA@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Jun 17 12:36, Pete Forman wrote:
> On 17 June 2011 10:53, Corinna Vinschen wrote:
> > Btw., it would be an incredible good idea to change the permissions on
> > the remote drive to allow users to set or change the permissions of
> > files they created themselves.  Otherwise you end up with non-POSIX
> > permissions on the drive anyway, whether or not you're using "acl" or
> > "noacl" mount option.  If the network drives are not under your control,
> > try to persuade the admin.  If the admin is adamant, use the noacl mount
> > option for these drives.  You can also just change the cygdrive prefix
> > to use noacl on all drives.  See the User's Guide for how to do it.
> 
> I've just sat down with the admin and confirmed that I do have Full
> Control on the network drive. Creating and modifying files is working
> fine outside Cygwin.
> 
> chmod is failing with Permission denied in the same places that touch
> fails to create files.

There's still something disallowed.  If creating the file with ACL as
well as changing the ACL via chmod fails, then you don't have WRITE_DAC
permissions.  This has nothing to do with the permission to create
files, it's the permission you need to change permissions (aka to write
the file's DACL).  The error from opening the file in "acl" mode comes
only from this very problem.  If you use the "noacl" mount, then the
only difference when opening the file is that Cygwin does not requests
WRITE_DAC access.  It's not something in Cygwin itself, it's the
underlying Windows function which fails with "Access denied" in this
case.  The reason you can create files outside of Cygwin comes from the
simple fact that 99.999% of the non-Cygwin apps don't care for
permissions.  Cygwin does.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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