On a computer with multiple users some kind of access restriction and sharing permission is essential. The nature of the security permission can vary depending upon who has access to the computer and their experience level. Generally, system administrators or owners like to implement any of the 3 kinds of security restrictions – file copying, deletion and modification. The latter two types of protection is easy to enforce in NTFS formatted drives, but preventing copying can be a little tricky.
Hundreds of articles has been written on NTFS permissions and many of you readers might already know it, but for the sake of completeness I will have to include the basics.
Preventing file reading or execution, modification and deletion
Update: Detailed instructions are available herehttp://www.instantfundas.com/2010/12/how-to-protect-files-from-deletion-in.html
These permissions can be set on NTFS formatted drives. Open Windows explorer and go to Tools >Folder Options, click on the View tab and uncheck the box “Use simple file sharing (Recommended)”.
Right click on the folders or files you want to set restrictions to and click on Properties. Under the Security tab you can now set Allow or Deny permissions on a number of files operations like:
- Full Control: Users can modify, add, move, and delete files, as well as their associated properties and directories. In addition, users can change permissions settings for all files and subdirectories.
- Modify: Users can view and modify files and file properties, including deleting and adding files to a directory or file properties to a file.
- Read & Execute: Users can run executable files, including scripts.
- Read: Users can view files and file properties.
- Write: Users can write to a file.
More permissions are available under the Advanced tab.
Preventing file copying
Preventing copying of files is a bit difficult. The most effective way to prevent unauthorized copying of files from your computer is disabling access to takeaway devices, in other words removable drives. Locking optical drives and disabling USB ports or preventing write access to USB devices is the most fool proof way to restrict file copying, provided the user cannot connect to the Internet. Otherwise they can simply upload files to a remote server and download it later from their own computers. Another way to prevent file copying is to use anti-file copy software. We will look at both methods.
1. Preventing file copying by disabling access to optical drives and USB ports
Windows does not provide an easy way to disable access to optical drives. The only way to do it is disabling them in the BIOS and then locking the BIOS with a password. Of course you wouldn’t be able to access them either, so it isn’t the most smartest thing to do. The alternative approach is to use an optical drive locker such as the CD/DVD Drive Locker. It lets you disable selected optical drives so that they become unresponsive to the open/close button. CD/DVD Drive Locker is actually intended to prevent kids from playing with the drive tray and provides very feeble protection as it can be easily overridden.
USB ports can be disabled quite easily using the registry editor. There are two kinds of restrictions you can put on a USB port – a) disable write privileges to USB port or b) completely disable USB ports
A. Disabling write access to USB ports: Open Windows registry editor and navigate to the following key
Create a new DWORD, name it WriteProtect and put the value as 0. To allow write access change the value to 1.
B. Disabling access to USB ports: Open Windows registry editor and navigate to the following key
Double click on the entry Start on the right pane and set it’s value to 4 (Hexadecimal). To enable USB ports again change the value back to 3.
2. Preventing file copying using anti-file copy software
There are a few anti-file copy software in the market, most of them are commercial. I managed to find one freeware among the lot - M File Anti-Copy
M File Anti-Copy prevents copying of files by disabling the Windows clipboard. With the clipboar