How do I stop cygwin from creating undeletable files? Or can I delete them somehow?












2















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?










share|improve this question

























  • Try these steps - stackoverflow.com/questions/3739477/…

    – hkdtam
    May 13 '16 at 14:08











  • @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
    May 16 '16 at 5:24
















2















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?










share|improve this question

























  • Try these steps - stackoverflow.com/questions/3739477/…

    – hkdtam
    May 13 '16 at 14:08











  • @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
    May 16 '16 at 5:24














2












2








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?










share|improve this question
















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?







windows-7 permissions cygwin file-permissions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 16 '16 at 6:18







skyking

















asked May 13 '16 at 13:21









skykingskyking

1164




1164













  • Try these steps - stackoverflow.com/questions/3739477/…

    – hkdtam
    May 13 '16 at 14:08











  • @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
    May 16 '16 at 5:24



















  • Try these steps - stackoverflow.com/questions/3739477/…

    – hkdtam
    May 13 '16 at 14:08











  • @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
    May 16 '16 at 5:24

















Try these steps - stackoverflow.com/questions/3739477/…

– hkdtam
May 13 '16 at 14:08





Try these steps - stackoverflow.com/questions/3739477/…

– hkdtam
May 13 '16 at 14:08













@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
May 16 '16 at 5:24





@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
May 16 '16 at 5:24










4 Answers
4






active

oldest

votes


















1














cygwin should not create undeletable files, at least not anymore. Assuming you have an updated installation (cygwin 2.5.1) :
check the file ACLs with: getfacl "filename"
you can sanitize the ACL permission with : setfacl -b "filename"
See manuals of getfacl and setfacl for details.
Additional reading
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files



As you have from getfacl



owner: Unknown+User



group: Unknown+Group



It means cygwin does not recognize the owner. Two possibilities :



1) the owner is not anymore valid in the windows machine



2) you are using some type of VPN or Domain connection and the windows database user is not accessible in specific conditions.



As windows admin you should be able to change the owner, also from cygwin.






share|improve this answer


























  • I seem to be running cygwin 2.5.0, maybe 2.5.1 wouldn't create these files. However your proposed solution for deleting the file doesn't seem to work.

    – skyking
    May 16 '16 at 5:25











  • setfacl -b "filename" does not delete the file. but it sanitize the ACL. After you can change permissions and delete as you want.

    – matzeri
    May 16 '16 at 9:06











  • Does setfacl sanitize the ACL even if it displays the "setfacl: Permission denied" message? In that case it's a confusing diagnostic...

    – skyking
    May 16 '16 at 9:09













  • What is the output of icacls "filename" ?

    – matzeri
    May 16 '16 at 9:13



















0














Please try with the takeown command. In an admin privilege CMD shell, issue the following command,



takeown /F makefile.wine



and see now if you can remove it,



rm makefile.wine



Update: Thanks for reporting and that was my oversight. After the takeown command, can you do a right-click over that file on explorer to view about the ownership information and do adjustment from there?






share|improve this answer


























  • As noted, that was among the solution you linked to which did not work.

    – skyking
    May 16 '16 at 6:20



















0














I've finally solved this, use Process Explorer (by default in recent windows versions) search in handles for any process using that filename and kill the process.



I've detailed everything about this in my blog.



Don't try to restore the permissions, that won't work.






share|improve this answer



















  • 1





    Welcome to Super User! We prefer answers to be as self-contained as possible, so could you please edit your answer to include the relevant information from the article in case the link breaks? For more information, see How to Answer.

    – Ben N
    Jun 6 '17 at 15:20



















0














I had the same issue with Cygwin but had no admin right.
I had folders with permissions like this:



d---r-xr-x    1 jac  root        0 Feb  7 13:25 ciao


In my case I solved like this:




  1. From Windows explorer, right click on the file/folder and select properties.

  2. Go to Security tab.

  3. In: "Group or user names" click on Edit...

  4. In: "Group or user names" click on Add...

  5. In: Enter the object names to select enter your user name

  6. Press Ok, if multiple names are found you might need to confirm which one is your name

  7. Select your user and allow it full control over the file by checking the checkbox.

  8. Press OK in all dialogs, you should be now able to delete the file.


Tested on Windows 7.



Hope that can help anybody else facing the same issue.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1076539%2fhow-do-i-stop-cygwin-from-creating-undeletable-files-or-can-i-delete-them-someh%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    cygwin should not create undeletable files, at least not anymore. Assuming you have an updated installation (cygwin 2.5.1) :
    check the file ACLs with: getfacl "filename"
    you can sanitize the ACL permission with : setfacl -b "filename"
    See manuals of getfacl and setfacl for details.
    Additional reading
    https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files



    As you have from getfacl



    owner: Unknown+User



    group: Unknown+Group



    It means cygwin does not recognize the owner. Two possibilities :



    1) the owner is not anymore valid in the windows machine



    2) you are using some type of VPN or Domain connection and the windows database user is not accessible in specific conditions.



    As windows admin you should be able to change the owner, also from cygwin.






    share|improve this answer


























    • I seem to be running cygwin 2.5.0, maybe 2.5.1 wouldn't create these files. However your proposed solution for deleting the file doesn't seem to work.

      – skyking
      May 16 '16 at 5:25











    • setfacl -b "filename" does not delete the file. but it sanitize the ACL. After you can change permissions and delete as you want.

      – matzeri
      May 16 '16 at 9:06











    • Does setfacl sanitize the ACL even if it displays the "setfacl: Permission denied" message? In that case it's a confusing diagnostic...

      – skyking
      May 16 '16 at 9:09













    • What is the output of icacls "filename" ?

      – matzeri
      May 16 '16 at 9:13
















    1














    cygwin should not create undeletable files, at least not anymore. Assuming you have an updated installation (cygwin 2.5.1) :
    check the file ACLs with: getfacl "filename"
    you can sanitize the ACL permission with : setfacl -b "filename"
    See manuals of getfacl and setfacl for details.
    Additional reading
    https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files



    As you have from getfacl



    owner: Unknown+User



    group: Unknown+Group



    It means cygwin does not recognize the owner. Two possibilities :



    1) the owner is not anymore valid in the windows machine



    2) you are using some type of VPN or Domain connection and the windows database user is not accessible in specific conditions.



    As windows admin you should be able to change the owner, also from cygwin.






    share|improve this answer


























    • I seem to be running cygwin 2.5.0, maybe 2.5.1 wouldn't create these files. However your proposed solution for deleting the file doesn't seem to work.

      – skyking
      May 16 '16 at 5:25











    • setfacl -b "filename" does not delete the file. but it sanitize the ACL. After you can change permissions and delete as you want.

      – matzeri
      May 16 '16 at 9:06











    • Does setfacl sanitize the ACL even if it displays the "setfacl: Permission denied" message? In that case it's a confusing diagnostic...

      – skyking
      May 16 '16 at 9:09













    • What is the output of icacls "filename" ?

      – matzeri
      May 16 '16 at 9:13














    1












    1








    1







    cygwin should not create undeletable files, at least not anymore. Assuming you have an updated installation (cygwin 2.5.1) :
    check the file ACLs with: getfacl "filename"
    you can sanitize the ACL permission with : setfacl -b "filename"
    See manuals of getfacl and setfacl for details.
    Additional reading
    https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files



    As you have from getfacl



    owner: Unknown+User



    group: Unknown+Group



    It means cygwin does not recognize the owner. Two possibilities :



    1) the owner is not anymore valid in the windows machine



    2) you are using some type of VPN or Domain connection and the windows database user is not accessible in specific conditions.



    As windows admin you should be able to change the owner, also from cygwin.






    share|improve this answer















    cygwin should not create undeletable files, at least not anymore. Assuming you have an updated installation (cygwin 2.5.1) :
    check the file ACLs with: getfacl "filename"
    you can sanitize the ACL permission with : setfacl -b "filename"
    See manuals of getfacl and setfacl for details.
    Additional reading
    https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files



    As you have from getfacl



    owner: Unknown+User



    group: Unknown+Group



    It means cygwin does not recognize the owner. Two possibilities :



    1) the owner is not anymore valid in the windows machine



    2) you are using some type of VPN or Domain connection and the windows database user is not accessible in specific conditions.



    As windows admin you should be able to change the owner, also from cygwin.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 16 '16 at 9:44

























    answered May 14 '16 at 5:09









    matzerimatzeri

    1,412257




    1,412257













    • I seem to be running cygwin 2.5.0, maybe 2.5.1 wouldn't create these files. However your proposed solution for deleting the file doesn't seem to work.

      – skyking
      May 16 '16 at 5:25











    • setfacl -b "filename" does not delete the file. but it sanitize the ACL. After you can change permissions and delete as you want.

      – matzeri
      May 16 '16 at 9:06











    • Does setfacl sanitize the ACL even if it displays the "setfacl: Permission denied" message? In that case it's a confusing diagnostic...

      – skyking
      May 16 '16 at 9:09













    • What is the output of icacls "filename" ?

      – matzeri
      May 16 '16 at 9:13



















    • I seem to be running cygwin 2.5.0, maybe 2.5.1 wouldn't create these files. However your proposed solution for deleting the file doesn't seem to work.

      – skyking
      May 16 '16 at 5:25











    • setfacl -b "filename" does not delete the file. but it sanitize the ACL. After you can change permissions and delete as you want.

      – matzeri
      May 16 '16 at 9:06











    • Does setfacl sanitize the ACL even if it displays the "setfacl: Permission denied" message? In that case it's a confusing diagnostic...

      – skyking
      May 16 '16 at 9:09













    • What is the output of icacls "filename" ?

      – matzeri
      May 16 '16 at 9:13

















    I seem to be running cygwin 2.5.0, maybe 2.5.1 wouldn't create these files. However your proposed solution for deleting the file doesn't seem to work.

    – skyking
    May 16 '16 at 5:25





    I seem to be running cygwin 2.5.0, maybe 2.5.1 wouldn't create these files. However your proposed solution for deleting the file doesn't seem to work.

    – skyking
    May 16 '16 at 5:25













    setfacl -b "filename" does not delete the file. but it sanitize the ACL. After you can change permissions and delete as you want.

    – matzeri
    May 16 '16 at 9:06





    setfacl -b "filename" does not delete the file. but it sanitize the ACL. After you can change permissions and delete as you want.

    – matzeri
    May 16 '16 at 9:06













    Does setfacl sanitize the ACL even if it displays the "setfacl: Permission denied" message? In that case it's a confusing diagnostic...

    – skyking
    May 16 '16 at 9:09







    Does setfacl sanitize the ACL even if it displays the "setfacl: Permission denied" message? In that case it's a confusing diagnostic...

    – skyking
    May 16 '16 at 9:09















    What is the output of icacls "filename" ?

    – matzeri
    May 16 '16 at 9:13





    What is the output of icacls "filename" ?

    – matzeri
    May 16 '16 at 9:13













    0














    Please try with the takeown command. In an admin privilege CMD shell, issue the following command,



    takeown /F makefile.wine



    and see now if you can remove it,



    rm makefile.wine



    Update: Thanks for reporting and that was my oversight. After the takeown command, can you do a right-click over that file on explorer to view about the ownership information and do adjustment from there?






    share|improve this answer


























    • As noted, that was among the solution you linked to which did not work.

      – skyking
      May 16 '16 at 6:20
















    0














    Please try with the takeown command. In an admin privilege CMD shell, issue the following command,



    takeown /F makefile.wine



    and see now if you can remove it,



    rm makefile.wine



    Update: Thanks for reporting and that was my oversight. After the takeown command, can you do a right-click over that file on explorer to view about the ownership information and do adjustment from there?






    share|improve this answer


























    • As noted, that was among the solution you linked to which did not work.

      – skyking
      May 16 '16 at 6:20














    0












    0








    0







    Please try with the takeown command. In an admin privilege CMD shell, issue the following command,



    takeown /F makefile.wine



    and see now if you can remove it,



    rm makefile.wine



    Update: Thanks for reporting and that was my oversight. After the takeown command, can you do a right-click over that file on explorer to view about the ownership information and do adjustment from there?






    share|improve this answer















    Please try with the takeown command. In an admin privilege CMD shell, issue the following command,



    takeown /F makefile.wine



    and see now if you can remove it,



    rm makefile.wine



    Update: Thanks for reporting and that was my oversight. After the takeown command, can you do a right-click over that file on explorer to view about the ownership information and do adjustment from there?







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 16 '16 at 6:28

























    answered May 16 '16 at 5:56









    hkdtamhkdtam

    30127




    30127













    • As noted, that was among the solution you linked to which did not work.

      – skyking
      May 16 '16 at 6:20



















    • As noted, that was among the solution you linked to which did not work.

      – skyking
      May 16 '16 at 6:20

















    As noted, that was among the solution you linked to which did not work.

    – skyking
    May 16 '16 at 6:20





    As noted, that was among the solution you linked to which did not work.

    – skyking
    May 16 '16 at 6:20











    0














    I've finally solved this, use Process Explorer (by default in recent windows versions) search in handles for any process using that filename and kill the process.



    I've detailed everything about this in my blog.



    Don't try to restore the permissions, that won't work.






    share|improve this answer



















    • 1





      Welcome to Super User! We prefer answers to be as self-contained as possible, so could you please edit your answer to include the relevant information from the article in case the link breaks? For more information, see How to Answer.

      – Ben N
      Jun 6 '17 at 15:20
















    0














    I've finally solved this, use Process Explorer (by default in recent windows versions) search in handles for any process using that filename and kill the process.



    I've detailed everything about this in my blog.



    Don't try to restore the permissions, that won't work.






    share|improve this answer



















    • 1





      Welcome to Super User! We prefer answers to be as self-contained as possible, so could you please edit your answer to include the relevant information from the article in case the link breaks? For more information, see How to Answer.

      – Ben N
      Jun 6 '17 at 15:20














    0












    0








    0







    I've finally solved this, use Process Explorer (by default in recent windows versions) search in handles for any process using that filename and kill the process.



    I've detailed everything about this in my blog.



    Don't try to restore the permissions, that won't work.






    share|improve this answer













    I've finally solved this, use Process Explorer (by default in recent windows versions) search in handles for any process using that filename and kill the process.



    I've detailed everything about this in my blog.



    Don't try to restore the permissions, that won't work.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jun 6 '17 at 14:39









    Miguel OrtizMiguel Ortiz

    1214




    1214








    • 1





      Welcome to Super User! We prefer answers to be as self-contained as possible, so could you please edit your answer to include the relevant information from the article in case the link breaks? For more information, see How to Answer.

      – Ben N
      Jun 6 '17 at 15:20














    • 1





      Welcome to Super User! We prefer answers to be as self-contained as possible, so could you please edit your answer to include the relevant information from the article in case the link breaks? For more information, see How to Answer.

      – Ben N
      Jun 6 '17 at 15:20








    1




    1





    Welcome to Super User! We prefer answers to be as self-contained as possible, so could you please edit your answer to include the relevant information from the article in case the link breaks? For more information, see How to Answer.

    – Ben N
    Jun 6 '17 at 15:20





    Welcome to Super User! We prefer answers to be as self-contained as possible, so could you please edit your answer to include the relevant information from the article in case the link breaks? For more information, see How to Answer.

    – Ben N
    Jun 6 '17 at 15:20











    0














    I had the same issue with Cygwin but had no admin right.
    I had folders with permissions like this:



    d---r-xr-x    1 jac  root        0 Feb  7 13:25 ciao


    In my case I solved like this:




    1. From Windows explorer, right click on the file/folder and select properties.

    2. Go to Security tab.

    3. In: "Group or user names" click on Edit...

    4. In: "Group or user names" click on Add...

    5. In: Enter the object names to select enter your user name

    6. Press Ok, if multiple names are found you might need to confirm which one is your name

    7. Select your user and allow it full control over the file by checking the checkbox.

    8. Press OK in all dialogs, you should be now able to delete the file.


    Tested on Windows 7.



    Hope that can help anybody else facing the same issue.






    share|improve this answer






























      0














      I had the same issue with Cygwin but had no admin right.
      I had folders with permissions like this:



      d---r-xr-x    1 jac  root        0 Feb  7 13:25 ciao


      In my case I solved like this:




      1. From Windows explorer, right click on the file/folder and select properties.

      2. Go to Security tab.

      3. In: "Group or user names" click on Edit...

      4. In: "Group or user names" click on Add...

      5. In: Enter the object names to select enter your user name

      6. Press Ok, if multiple names are found you might need to confirm which one is your name

      7. Select your user and allow it full control over the file by checking the checkbox.

      8. Press OK in all dialogs, you should be now able to delete the file.


      Tested on Windows 7.



      Hope that can help anybody else facing the same issue.






      share|improve this answer




























        0












        0








        0







        I had the same issue with Cygwin but had no admin right.
        I had folders with permissions like this:



        d---r-xr-x    1 jac  root        0 Feb  7 13:25 ciao


        In my case I solved like this:




        1. From Windows explorer, right click on the file/folder and select properties.

        2. Go to Security tab.

        3. In: "Group or user names" click on Edit...

        4. In: "Group or user names" click on Add...

        5. In: Enter the object names to select enter your user name

        6. Press Ok, if multiple names are found you might need to confirm which one is your name

        7. Select your user and allow it full control over the file by checking the checkbox.

        8. Press OK in all dialogs, you should be now able to delete the file.


        Tested on Windows 7.



        Hope that can help anybody else facing the same issue.






        share|improve this answer















        I had the same issue with Cygwin but had no admin right.
        I had folders with permissions like this:



        d---r-xr-x    1 jac  root        0 Feb  7 13:25 ciao


        In my case I solved like this:




        1. From Windows explorer, right click on the file/folder and select properties.

        2. Go to Security tab.

        3. In: "Group or user names" click on Edit...

        4. In: "Group or user names" click on Add...

        5. In: Enter the object names to select enter your user name

        6. Press Ok, if multiple names are found you might need to confirm which one is your name

        7. Select your user and allow it full control over the file by checking the checkbox.

        8. Press OK in all dialogs, you should be now able to delete the file.


        Tested on Windows 7.



        Hope that can help anybody else facing the same issue.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 7 at 13:41

























        answered Feb 7 at 13:36









        Jacopo GobbiJacopo Gobbi

        12




        12






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1076539%2fhow-do-i-stop-cygwin-from-creating-undeletable-files-or-can-i-delete-them-someh%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Probability when a professor distributes a quiz and homework assignment to a class of n students.

            Aardman Animations

            Are they similar matrix