Protect files and folders from being deleted

Just to make sure we’re on the same page, I’m going to give these instructions from the beginning (also to help future visitors).  To get to the true heart of the permissions, you have to click though a bunch of steps.  My only guess is that this is to scare away the faint of heart, lol.

  1. Right-click the folder you want to protect (I’m using c:\users\chris\pictures) and choose Properties.
  2. On the Security tab, click Advanced.  The ‘Advanced Security Settings for Pictures’ dialog options.
  3. Click the Change Permissions… button.
  4. Click the Add… button, and type “everyone” (no quotes) into the box, then click OK.  A ‘Permission Entry’ dialog appears.
  5. Scroll to the bottom.  Place a checkmark in the ‘Deny’ column for “Delete”.  Do not add any other checkmarks.

  6. Turn on (checkmark) the option at the bottom called ‘Apply these permissions to objects and/or containers within this container only’, then click OK.  You should be back at a screen that looks something like this.

  7. Turn on (checkmark) the option at the bottom called ‘Replace all child object permissions with inheritable permissions from this object’, then click OK.
  8. Windows will set the deny permission on every file and subfolder under this folder, unless you have set up one to not inherit permissions from its parent (you probably haven’t done that).
Note: Deny permissions take precedence over allow permissions, so no one will be able to delete any file until/unless this permission item is removed.  This will block other apps from being able to delete either (for example, the Photo Gallery or Media Center).
Advertisements

Posted on January 12, 2017, in Web Dev. Bookmark the permalink. Leave a comment.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: