• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

Disallow a user from deleting any file

Please tell how I can disallow a particular user from deleting any files (including the ones created by him) on a Windows 7 computer.

Thanks!
0
dshrenik
Asked:
dshrenik
3 Solutions
 
jppintoCommented:
0
 
dshrenikAuthor Commented:
This seems to work only for existing files, and I have to do it for each file separately. How do I do the same for all files (including those that will be created in the future by the user himself)?

Thanks!
0
 
David Johnson, CD, MVPOwnerCommented:
what is the real purpose of this file restrictions? and you can do it globally by changing the drive/folder and editing the permissions as shown in the article.
0
 
☠ MASQ ☠Commented:
This is could cause some real functional problems with using Windows and software packages as a global prevention of file deletion could stop legitimate temporary file deletion by programs.  It may be better to restrict the effect to certain file locations but to help you best as ve3ofa says we really need some background about why you need this.
0
 
Saikapian_4739Commented:
You can restrict the user's permission to read only for all your drives on your system and the user wont be able to even change any of the files. Or better would be to grant just read and write permission and not the MODIFY permission and then user can read and write to files but can NOT delete them.

So that would suffice. Here is how to give permission.

Right click Drive letter (c/d/e) > Properties > Security > Permissions > Select the user and change the permissions.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now