- To test this create a test.txt file on you desktop.
- Now, to protect this file, right-click the file and choose Properties.
- On the Security tab, click Advanced. The 'Advanced Security Settings for test.txt dialog options.
- Click the Change Permissions... button.
- Click the Add... button, and type "everyone" (no quotes) into the box, then click
OK. A 'Permission Entry' dialog appears.
- Scroll to the bottom. Place a checkmark in the 'Deny' column for "Delete". Do not add any other checkmarks.
- Turn on (checkmark)
the option at the bottom called 'Apply these permissions to objects
and/or containers within this container only', then click OK.
- Turn on (checkmark) the option
at the bottom called 'Replace all child object permissions
with inheritable permissions from this object', then click OK.
- All done. Your file is now password protected. No one, not even you (the creator) can delete this file, on purpose or by accident.
- Remember, the same thing applies for a folder.
- 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).
A special thanks to Shawn B Keene [MVP] for the above information.
No comments:
Post a Comment