delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/16/10:59:29

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 16 Jun 2011 16:58:34 +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: <20110616145834.GA21703@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>
MIME-Version: 1.0
In-Reply-To: <BANLkTin1t2DZedqY7TBWDbPAW_ra=oiuzg@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 16 15:30, Pete Forman wrote:
> [retry]
> On 16 June 2011 13:49, Corinna Vinschen wrote:
>  > On Jun 16 12:59, Pete Forman wrote:
>  >> I am seeing "Permission denied" errors when trying to create files on
>  >> network drives. Local drives seem okay. Once a file is created with a
>  >> native program I can write to it.
>  >
>  > http://cygwin.com/problems.html
>  >
>  > cygcheck output as descibed on the above page would be helpful in the
>  > first place.
> 
> Attached.
> 
>  >  $ strace -o touch.trace touch foo.txt
>  >
>  > and attach the touch.trace file to your reply.
> Attached

Thanks.  AFAICS the permissions on that network drive don't allow a
user to set the ACL of a file he or she's just creating.  In contrast
to previous versions, Cygwin 1.7.9 requests the permission for that
right at file creation time.  Unfortunately that fails due to the
weird permission settings on that drive.

Try to mount your drive with the noacl option to some arbitrary mount
point, for instance:

  mount -f -o noacl,binary X: /my_x_drive

and then use the path below that mount point to access the drive.

If that works, you can add the path to your personal fstab
file (see http://cygwin.com/cygwin-ug-net/using.html#mount-table):

  X: /my_x_drive none noacl,binary,posix=0 0 0

Please report back if it helped.  If so, I'll add some workaround for
this problem to the next Cygwin version.


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