2
1
Once in a while cygwin seem to create files that doesn't seem to be removable at all. When deleting from cygwin it just doesn't happen (rm
says nothing, but the file is still there). When trying from the explorer it says that I need permissions from the administrator (and I am the administrator, the delete item in the drop down menu has a shield and I guess that means that I try this with administrator priveleges). When trying from total commander I first get error and am asked if I wan't to retry as administrator and then I still doesn't seem to have permission to delete the file.
I get the same problem if I try to view the file. Problems when I try to view the security properties - must press a shield-button to become administrator and then am told that I'm not allowed to view it unless I take ownership (which I'm not allowed to do).
Using the cygwin shell I'm allowed to view, but not modify the ACL (even if the shell is being run as the administrator):
$ getfacl makefile.wine
# file: makefile.wine
# owner: Unknown+User
# group: Unknown+Group
user::rw-
group::r--
other:---
$ setfacl -b makefile.wine
setfacl: Permission denied
However when restarted windows there were no problems in just removing the files.
Why/how do cygwin create these files (I figured out that one was created when running sed -i
)? How can I avoid this? And finally is there any sane way to delete the file?
Try these steps - http://stackoverflow.com/questions/3739477/undeletable-file-in-cygwin#3769631
– hkdtam – 2016-05-13T14:08:57.750@hkdtam I'm not sure which steps you mean. The answer linked to seem to suggest to just wait and the file should go away, that hasn't happened. The other solutions basically show the same result, I don't seem to be allowed to do any of those things (even if running the shell as administrator). – skyking – 2016-05-16T05:24:26.907