File permissions to delete file

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 2,899
    Windows 10 Pro for the Bro
       #11

    Do the same process for other names. You've done it for Everyone, now also do the same thing for those:

    Administrators

    AND
    If you have a user name on the computer, type in that user name. For example, my user name is "Admin"; look at the picture to see what I mean

    File permissions to delete file-login-screenshot.png
      My Computer


  2. Posts : 7
    windows 10
    Thread Starter
       #12

    pepanee said:
    Do the same process for other names. You've done it for Everyone, now also do the same thing for those:

    Administrators

    AND
    If you have a user name on the computer, type in that user name. For example, my user name is "Admin"; look at the picture to see what I mean

    File permissions to delete file-login-screenshot.png
    File permissions to delete file-capture.jpg

    It gave me a security error on giving me security clearance.
      My Computer


  3. Posts : 2,899
    Windows 10 Pro for the Bro
       #13

    What did the Continue button do? Did it give you a different error box?

    Do the whole owner thing on the main folder that you want to delete (which contains all the files)

    If that doesn't work, do the owner thing on the Steam folder itself.
      My Computer


  4. Posts : 124
    Windows 10.0.15063 (Version 1703) Pro 64-bit
       #14

    pepanee said:
    What did the Continue button do? Did it give you a different error box?

    Do the whole owner thing on the main folder that you want to delete (which contains all the files)

    If that doesn't work, do the owner thing on the Steam folder itself.
    Windows is extremely confusing in its permissions and file ownership.

    If Taking Ownership of the files does not work, then the ACL and permissions are misconfigured.

    Permissions precedes the ownership, you can have ownership but incorrect permissions in accordance with the ACL Access Control Lists (Windows).

    Permissions enable the owner of each secured object, such as a file, Active Directory object, or registry key, to control who can perform an operation or a set of operations on the object or object property
    Microsoft - How Permissions Work

    I suggest that you open powershell (Search > type powershell > Right click > run as admin) and execute this command:

    Code:
    icacls "C:" /t /c /q /RESET
    This command restores permissions to default for all files contained within C:\ quietly.

    Followed by this command once completed:

    Code:
    icacls "c:\" /t /c /q Administrators:f
    This command restores full permissions to the Administrators on the computer, which I presume you are an Administrator.

    And reboot the computer, and finally attempt to delete the file after attempting to retake ownership.

    If that does not work, then I suggest using a third party utility known as UnlockIT:
    Downloads - UnLock IT

    And download, install. Ensure you select customized installation.

    Right click the folder that contains the files or the files individually that you would like to delete, and follow as here:




    Then this should delete all files you right clicked upon after restarting the system.

    You should not run into issues regarding permissions after this, and if you do, post again and I'll look into it.

    Side note: often times malware tends to hijack a system and fluff itself in permissions that benefit itself.
      My Computer


  5. Posts : 7
    windows 10
    Thread Starter
       #15

    Hydrate said:
    Windows is extremely confusing in its permissions and file ownership.

    If Taking Ownership of the files does not work, then the ACL and permissions are misconfigured.

    Permissions precedes the ownership, you can have ownership but incorrect permissions in accordance with the ACL Access Control Lists (Windows).

    Microsoft - How Permissions Work

    I suggest that you open powershell (Search > type powershell > Right click > run as admin) and execute this command:

    Code:
    icacls "C:" /t /c /q /RESET
    This command restores permissions to default for all files contained within C:\ quietly.

    Followed by this command once completed:

    Code:
    icacls "c:\" /t /c /q Administrators:f
    This command restores full permissions to the Administrators on the computer, which I presume you are an Administrator.

    And reboot the computer, and finally attempt to delete the file after attempting to retake ownership.

    If that does not work, then I suggest using a third party utility known as UnlockIT:
    Downloads - UnLock IT

    And download, install. Ensure you select customized installation.

    Right click the folder that contains the files or the files individually that you would like to delete, and follow as here:




    Then this should delete all files you right clicked upon after restarting the system.

    You should not run into issues regarding permissions after this, and if you do, post again and I'll look into it.

    Side note: often times malware tends to hijack a system and fluff itself in permissions that benefit itself.
    I am trying this, but it's taking a very long time.
      My Computer


  6. Posts : 124
    Windows 10.0.15063 (Version 1703) Pro 64-bit
       #16

    Scoka said:
    I am trying this, but it's taking a very long time.
    Yes. The reason being it selects each file inside of your hard drive and re-corrects the permissions and regrants your Administrator account full access rights over all files.

    This can take a while depending on your hardware specs, of course.

    Please be patient. :)
      My Computer


  7. Posts : 5,478
    2004
       #17

    @Hydrate, you must be careful with your suggestions.

    Hydrate said:
    execute this command:

    Code:
    icacls "C:" /t /c /q /RESET
    This command restores permissions to default for all files contained within C:\ quietly.
    No it doesn't. It replaces ACLs with inherited ACLs. A default Windows install does not take inherited permissions from root.

    Hydrate said:
    Followed by this command once completed:

    Code:
    icacls "c:\" /t /c /q Administrators:f
    This command restores full permissions to the Administrators on the computer
    Again, no it doesn't. It grants full access to administrators group which Windows does not do and would be unwise to do.

    There is no way (apart from a clean install) to reset default permissions any more.

    If OP wants to delete a specific file a safer way would be to change the permissions on that specific file (by taking ownerhip and granting permissions) or use unlocker which will do it at boot.

    Changing permissions on the whole C drive is a bad idea.
      My Computer


  8. Posts : 7
    windows 10
    Thread Starter
       #18

    Hydrate said:
    Yes. The reason being it selects each file inside of your hard drive and re-corrects the permissions and regrants your Administrator account full access rights over all files.

    This can take a while depending on your hardware specs, of course.

    Please be patient. :)
    Thank you very much, UnLock IT has worked very well.
    Unfortunatly, after I tried the first thing you suggested, it flashes and error message when I try to click on any file
    File permissions to delete file-captain.jpg
      My Computer


  9. Posts : 5,478
    2004
       #19

    Assuming there is nothing you want in your recycle bin, if it is corrupted you can delete the $recycle.bin file(s) from all your partitions and they will be regenerated next boot.

    Fix: Recycle Bin is corrupted
      My Computer


  10. Posts : 124
    Windows 10.0.15063 (Version 1703) Pro 64-bit
       #20

    My apologies, I should have known better to reset simply the affected targeted directory.

    Again, if there are any issues please let me know thread starter.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:20.
Find Us




Windows 10 Forums