public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Create file fails on network drives in cygwin-1.7.9-1
@ 2011-06-16 12:00 Pete Forman
  2011-06-16 12:50 ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: Pete Forman @ 2011-06-16 12:00 UTC (permalink / raw)
  To: cygwin

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.

This is with cygwin 1.7.9-1. The problem went away when I reverted to
1.7.7-1 and came back when I reinstalled 1.7.9-1. The release notes
for 1.7.9 include "Slightly speed up file access when creating new
files".

$ touch foo.txt
touch: cannot touch `foo.txt': Permission denied

# created foo.txt with native emacs

$ echo hello > foo.txt

$ echo hello > bar.txt
bash: bar.txt: Permission denied


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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Create file fails on network drives in cygwin-1.7.9-1
@ 2011-11-24  9:00 keith-kube
  2011-11-24 10:03 ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: keith-kube @ 2011-11-24  9:00 UTC (permalink / raw)
  To: cygwin

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> 
> <20110616124954.GY12140@calimero.vinschen.de> 
> <BANLkTin1t2DZedqY7TBWDbPAW_ra=oiuzg@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 
>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
 




------------------------------------------------------------
This email was sent from Netspace Webmail: http://www.netspace.net.au


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-11-24  9:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 12:00 Create file fails on network drives in cygwin-1.7.9-1 Pete Forman
2011-06-16 12:50 ` Corinna Vinschen
2011-06-16 14:31   ` Pete Forman
2011-06-16 14:59     ` Corinna Vinschen
2011-06-17  8:34       ` Pete Forman
2011-06-17  9:53         ` Corinna Vinschen
2011-06-17 11:36           ` Pete Forman
2011-06-17 12:07             ` Corinna Vinschen
2011-11-24  9:00 keith-kube
2011-11-24 10:03 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).