This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Create file fails on network drives in cygwin-1.7.9-1

I had the same problem, and the suggested solution below worked.

Failing a permanent fix, it would be great if a future version of cygwin allowed
me to specify (via a config file) that I need to mount (some or all) of the
/cygdrive directories with noacl option (or even better - pointers on how to
achieve that with the current version).  In the meantime I have set up
/etc/fstab as specified below and modified our scripts to write to the manually
mounted network share.

We have deliberately weird permissions on some directories, so I am unlikely to
be able to convince either auditors or system administrators to modify the setup

$ uname -a
CYGWIN_NT-5.2 awmspvw00204 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

> 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: <>
> References: <> 
> <> 
> <>
> In-Reply-To: <BANLkTin1t2DZedqY7TBWDbPAW_ra=oiuzg at mail dot gmail 
> dot com>

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


This email was sent from Netspace Webmail:

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]