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


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


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