Permissions Required To Delete

Windows 7 can be a serious pain in the ass when deleting files. This may help:

  1. Take ownership of the file(s). Start a Command Prompt (cmd) as an administrator in the affected folder, and enter:
    takeown /f file takeown /f directory /r 
  2. Give yourself full rights on the file:
    cacls file /G username:F 

cacls can be used with wildcards and directory traversal: Security from the command line with CACLS.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s