Recently researching virus prevention, and finally thought of this simple method
-----------------------------------------------------------------
Now I want to set the following permissions for a certain directory in the NTFS disk:
1. Can create files or subdirectories in this directory, the permissions of subdirectories automatically inherit the permissions of this directory, subdirectories can be renamed, can be deleted
(Naming and deleting are always twin brothers in my experiment)
2. Files copied to (or cut to, or newly created to) this directory become unable to edit content, unable to change attributes, but can be deleted,
3. The attributes of this directory cannot be changed, cannot be deleted, cannot be renamed (this is easy to do, set R permission for the parent directory)
PS: If the requirements of 1, 2, 3 are difficult to achieve simultaneously, you can abandon requirements 1 and 3, and focus on requirement 2!
------------------------------------------------------------------
Thank you in advance!
Off-topic:
Not long ago, I saw a Kingsoft virus-killing tool in the FAT32 partition of drive D. I forgot the specific name, but it has a special write-protect function. It cannot be renamed, cannot be deleted, can be run to kill viruses, and cannot be copied! Using unlocker to check, there are no processes mounted inside. I really admire how the author implemented it? In short, these skills can add a lot of convenience and benefits to our use of the computer.
This post is closed. Please refer to post 5 of this thread for corresponding modifications according to the actual situation.
http://www.cn-dos.net/forum/viewthread.php?tid=48807
[ Last edited by plp626 on 2009-9-14 at 01:23 ]

