This is the mail archive of the
mailing list for the Cygwin project.
Re: Create file fails on network drives in cygwin-1.7.9-1
- From: keith-kube at netspace dot net dot au
- To: cygwin at cygwin dot com
- Date: Thu, 24 Nov 2011 15:15:17 +1100
- Subject: 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: <20110616145834.GA21703@calimero.vinschen.de>
> References: <BANLkTim75avYGKmYhzzdEmbqjt5Dfu1WNg@mail.gmail.com>
> 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: http://www.netspace.net.au
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple