This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Oddities with file deletion on CIFS drive
- From: Quanah Gibson-Mount <quanah at zimbra dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 08 Sep 2010 15:17:37 -0700
- Subject: Oddities with file deletion on CIFS drive
I have a CIFS drive I connect to as the windows user. I can write to the
drive with no problem. However, when I go to delete files from the drive,
Cygwin behaves very oddly.
build@zre-win-002
/cygdrive/z/current/WINDOWS/main/20100908131458_ZDESKTOP/ZimbraBuild/templates
$ rm -f *
build@zre-win-002
/cygdrive/z/current/WINDOWS/main/20100908131458_ZDESKTOP/ZimbraBuild/templates
$ ls -l
total 104
-r-xr-xr-x 1 ???????? ???????? 1362 2010-09-08 13:31 BUILD_EVO_template
-r-xr-xr-x 1 ???????? ???????? 1453 2010-09-08 13:31 BUILD_ISYNC_template
-r-xr-xr-x 1 ???????? ???????? 636 2010-09-08 13:31 BUILD_LABEL_template
-r-xr-xr-x 1 ???????? ???????? 1536 2010-09-08 13:31
BUILD_WIN_UPDATE_template
-r-xr-xr-x 1 ???????? ???????? 1699 2010-09-08 13:31 BUILD_template
-r-xr-xr-x 1 ???????? ???????? 4508 2010-09-08 13:31 BUILD_template_FOSS
-r-xr-xr-x 1 ???????? ???????? 7118 2010-09-08 13:31
BUILD_template_FOSS_ThirdParty
-r-xr-xr-x 1 ???????? ???????? 1453 2010-09-08 13:31 BUILD_template_ISYNC
-r-xr-xr-x 1 ???????? ???????? 5535 2010-09-08 13:31 BUILD_template_NETWORK
-r-xr-xr-x 1 ???????? ???????? 7975 2010-09-08 13:31
BUILD_template_NETWORK_ThirdParty
-r-xr-xr-x 1 ???????? ???????? 1463 2010-09-08 13:31 BUILD_template_TOASTER
-r-xr-xr-x 1 ???????? ???????? 2989 2010-09-08 13:31 BUILD_template_ZDESKTOP
-r-xr-xr-x 1 ???????? ???????? 1386 2010-09-08 13:31 BUILD_test
Even with -f, it failed to delete these files. Files that were created by
this very user.
Now, if I modify the file to be +w, then -w, so it returns to its original
permissions, I can suddenly delete it:
build@zre-win-002
/cygdrive/z/current/WINDOWS/main/20100908131458_ZDESKTOP/ZimbraBuild/templates
$ chmod a+w BUILD_EVO_template
build@zre-win-002
/cygdrive/z/current/WINDOWS/main/20100908131458_ZDESKTOP/ZimbraBuild/templates
$ chmod a-w BUILD_EVO_template
build@zre-win-002
/cygdrive/z/current/WINDOWS/main/20100908131458_ZDESKTOP/ZimbraBuild/templates
$ rm BUILD_EVO_template
build@zre-win-002
/cygdrive/z/current/WINDOWS/main/20100908131458_ZDESKTOP/ZimbraBuild/templates
$ ls -l
total 96
-r-xr-xr-x 1 ???????? ???????? 1453 2010-09-08 13:31 BUILD_ISYNC_template
-r-xr-xr-x 1 ???????? ???????? 636 2010-09-08 13:31 BUILD_LABEL_template
-r-xr-xr-x 1 ???????? ???????? 1536 2010-09-08 13:31
BUILD_WIN_UPDATE_template
-r-xr-xr-x 1 ???????? ???????? 1699 2010-09-08 13:31 BUILD_template
-r-xr-xr-x 1 ???????? ???????? 4508 2010-09-08 13:31 BUILD_template_FOSS
-r-xr-xr-x 1 ???????? ???????? 7118 2010-09-08 13:31
BUILD_template_FOSS_ThirdParty
-r-xr-xr-x 1 ???????? ???????? 1453 2010-09-08 13:31 BUILD_template_ISYNC
-r-xr-xr-x 1 ???????? ???????? 5535 2010-09-08 13:31 BUILD_template_NETWORK
-r-xr-xr-x 1 ???????? ???????? 7975 2010-09-08 13:31
BUILD_template_NETWORK_ThirdParty
-r-xr-xr-x 1 ???????? ???????? 1463 2010-09-08 13:31 BUILD_template_TOASTER
-r-xr-xr-x 1 ???????? ???????? 2989 2010-09-08 13:31 BUILD_template_ZDESKTOP
-r-xr-xr-x 1 ???????? ???????? 1386 2010-09-08 13:31 BUILD_test
This behavior is quite bizarre. I should be able to delete the files I
created with the "-f" option to "rm".
--Quanah
--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
--
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