X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_RW,TW_WX,TW_XR,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20110616145834.GA21703@calimero.vinschen.de> References: <20110616124954 DOT GY12140 AT calimero DOT vinschen DOT de> <20110616145834 DOT GA21703 AT calimero DOT vinschen DOT de> Date: Fri, 17 Jun 2011 09:34:22 +0100 Message-ID: Subject: Re: Create file fails on network drives in cygwin-1.7.9-1 From: Pete Forman To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p5H8YkOg003578 On 16 June 2011 15:58, Corinna Vinschen wrote: > 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. My first couple of goes did not work reusing the /cygdrive mount point. What did work was using /my_t as a mount point. ## state before remounting $ mount C:/Program Files/Cygwin/bin on /usr/bin type ntfs (binary,auto) C:/Program Files/Cygwin/lib on /usr/lib type ntfs (binary,auto) C:/Program Files/Cygwin on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) G: on /cygdrive/g type ntfs (binary,posix=0,user,noumount,auto) H: on /cygdrive/h type ntfs (binary,posix=0,user,noumount,auto) J: on /cygdrive/j type ntfs (binary,posix=0,user,noumount,auto) K: on /cygdrive/k type ntfs (binary,posix=0,user,noumount,auto) L: on /cygdrive/l type ntfs (binary,posix=0,user,noumount,auto) M: on /cygdrive/m type ntfs (binary,posix=0,user,noumount,auto) N: on /cygdrive/n type ntfs (binary,posix=0,user,noumount,auto) T: on /cygdrive/t type ntfs (binary,posix=0,user,noumount,auto) V: on /cygdrive/v type ntfs (binary,posix=0,user,noumount,auto) W: on /cygdrive/w type ntfs (binary,posix=0,user,noumount,auto) X: on /cygdrive/x type ntfs (binary,posix=0,user,noumount,auto) Y: on /cygdrive/y type ntfs (binary,posix=0,user,noumount,auto) ## turn off acl $ mount -f -o noacl,binary H: /cygdrive/h $ mount C:/Program Files/Cygwin/bin on /usr/bin type ntfs (binary,auto) C:/Program Files/Cygwin/lib on /usr/lib type ntfs (binary,auto) C:/Program Files/Cygwin on / type ntfs (binary,auto) H: on /cygdrive/h type ntfs (binary,noacl,user) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) G: on /cygdrive/g type ntfs (binary,posix=0,user,noumount,auto) J: on /cygdrive/j type ntfs (binary,posix=0,user,noumount,auto) K: on /cygdrive/k type ntfs (binary,posix=0,user,noumount,auto) L: on /cygdrive/l type ntfs (binary,posix=0,user,noumount,auto) M: on /cygdrive/m type ntfs (binary,posix=0,user,noumount,auto) N: on /cygdrive/n type ntfs (binary,posix=0,user,noumount,auto) T: on /cygdrive/t type ntfs (binary,posix=0,user,noumount,auto) V: on /cygdrive/v type ntfs (binary,posix=0,user,noumount,auto) W: on /cygdrive/w type ntfs (binary,posix=0,user,noumount,auto) X: on /cygdrive/x type ntfs (binary,posix=0,user,noumount,auto) Y: on /cygdrive/y type ntfs (binary,posix=0,user,noumount,auto) ## switch off case sensitivity $ mount -f -o noacl,binary,posix=0 H: /cygdrive/h $ mount C:/Program Files/Cygwin/bin on /usr/bin type ntfs (binary,auto) C:/Program Files/Cygwin/lib on /usr/lib type ntfs (binary,auto) C:/Program Files/Cygwin on / type ntfs (binary,auto) H: on /cygdrive/h type ntfs (binary,noacl,posix=0,user) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) G: on /cygdrive/g type ntfs (binary,posix=0,user,noumount,auto) J: on /cygdrive/j type ntfs (binary,posix=0,user,noumount,auto) K: on /cygdrive/k type ntfs (binary,posix=0,user,noumount,auto) L: on /cygdrive/l type ntfs (binary,posix=0,user,noumount,auto) M: on /cygdrive/m type ntfs (binary,posix=0,user,noumount,auto) N: on /cygdrive/n type ntfs (binary,posix=0,user,noumount,auto) T: on /cygdrive/t type ntfs (binary,posix=0,user,noumount,auto) V: on /cygdrive/v type ntfs (binary,posix=0,user,noumount,auto) W: on /cygdrive/w type ntfs (binary,posix=0,user,noumount,auto) X: on /cygdrive/x type ntfs (binary,posix=0,user,noumount,auto) Y: on /cygdrive/y type ntfs (binary,posix=0,user,noumount,auto) $ mount -f -o noacl,binary T: /my_t $ mount -f -o noacl,binary T: /cygdrive/t $ mount C:/Program Files/Cygwin/bin on /usr/bin type ntfs (binary,auto) C:/Program Files/Cygwin/lib on /usr/lib type ntfs (binary,auto) C:/Program Files/Cygwin on / type ntfs (binary,auto) H: on /cygdrive/h type ntfs (binary,noacl,posix=0,user) T: on /cygdrive/t type ntfs (binary,noacl,user) T: on /my_t type ntfs (binary,noacl,user) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) G: on /cygdrive/g type ntfs (binary,posix=0,user,noumount,auto) J: on /cygdrive/j type ntfs (binary,posix=0,user,noumount,auto) K: on /cygdrive/k type ntfs (binary,posix=0,user,noumount,auto) L: on /cygdrive/l type ntfs (binary,posix=0,user,noumount,auto) M: on /cygdrive/m type ntfs (binary,posix=0,user,noumount,auto) N: on /cygdrive/n type ntfs (binary,posix=0,user,noumount,auto) V: on /cygdrive/v type ntfs (binary,posix=0,user,noumount,auto) W: on /cygdrive/w type ntfs (binary,posix=0,user,noumount,auto) X: on /cygdrive/x type ntfs (binary,posix=0,user,noumount,auto) Y: on /cygdrive/y type ntfs (binary,posix=0,user,noumount,auto) $ cd /my_t/Pete\ F $ rm foo.txt $ touch foo.txt $ cd /cygdrive/t/Pete\ F/ $ rm foo.txt $ touch foo.txt touch: cannot touch `foo.txt': Permission denied $ ls -ld /cygdrive/* /my_t drwxr-xr-x+ 1 SYSTEM SYSTEM 0 Jun 17 08:40 /cygdrive/c drwx------+ 1 Administrators Domain Users 0 Feb 25 14:46 /cygdrive/g drwx------+ 1 Administrators Domain Users 0 Jun 9 12:59 /cygdrive/h drwxrwx---+ 1 Administrators SYSTEM 0 Jun 10 09:15 /cygdrive/j drwx------+ 1 Administrators Domain Users 0 Jun 13 17:47 /cygdrive/k drwx------+ 1 Administrators Domain Users 0 Jun 9 15:17 /cygdrive/l drwxrwx---+ 1 Administrators SYSTEM 0 Jun 15 11:33 /cygdrive/m drwxr-x---+ 1 Administrators Domain Users 0 Mar 23 2009 /cygdrive/n drwx------+ 1 Administrators SYSTEM 0 Jun 15 10:06 /cygdrive/t drwxrwx---+ 1 Administrators Domain Users 0 May 26 16:39 /cygdrive/v drwx------+ 1 Administrators Domain Users 0 May 17 09:36 /cygdrive/w d---r-x---+ 1 Administrators Domain Users 0 May 20 10:14 /cygdrive/x drwx------+ 1 Administrators Domain Users 0 Apr 12 08:53 /cygdrive/y drwxr-xr-x 1 peter.forman Domain Users 0 Jun 15 10:06 /my_t -- Pete Forman -- 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