Imagine I have some content in file which I don't want anyone to read. Also encryption here doesn't help because I need to store the key anyway - and we have some problems with this.

Is it possible on windows to prevent user from reading and copying a file?

Update: Assume I have administrator rights. The file can be stored where it is needed. The user from which we want to protect this file - can have less privileges than Admin.

There is one thing though. There is software which should be able to read this file. PS who will run this software I am not sure yet though, maybe you can answer in both cases - assuming this user, or someone else runs the software

  • If you right click on a file and click "Properties" go to the "Security" tab and assign permissions for users.Not sure if you can stop copy though – Harvey Nov 11 '15 at 12:10
  • @Harvey: I think that doesn't even prevent one from reading – user520473 Nov 11 '15 at 12:12
  • Even from unchanging "Read" privileges? – Harvey Nov 11 '15 at 12:13
  • 1
    If the user doesn't have permission to read the parent directory then the file doesn't exist as far as they are concerned. – DavidPostill Nov 11 '15 at 12:20
  • 1
    Why don't you try changing the security rights and see if that works for your particular case? We are not here to try all possible options for you. You need to try things for yourself. – DavidPostill Nov 11 '15 at 12:50

I am showing this example with a folder, although it applies to any file type.

  1. Select the file, right click and go to properties.

  2. Go to the security tab & Click edit

  3. Add a user's name with the add button, type the name of the user in the gray box, then hit OK. Now, DENY Full Control with the permissions for ... tab

  4. Hit yes to continue (If you get a warning message.) enter image description here

What happens when user Beata gets a bit to sneaky and tries to open the folder... enter image description here

What happens when user Beata wants to copy this folder: (BTW user Beata is admin) :

enter image description here

  • can software access that folder? – user520473 Nov 11 '15 at 22:35
  • Idk. It's like asking can a jungle be in a desert. Or in other words, most likely not, but who knows? Maybe mankind will do so one day. – RookieTEC9 Nov 11 '15 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy