简体   繁体   English

我如何给我的应用程序数据文件夹卡巴斯基像安全一样?

[英]c# How can I give my app data folder Kaspersky like security?

I want to give my application data folder kaspersky antivirus like security. 我想给我的应用程序数据文件夹像安全性一样的卡巴斯基反病毒软件。 Where I can add a folder but cant change any content or create any file. 我可以在其中添加文件夹但不能更改任何内容或创建任何文件的位置。 I even gave the current user full control security privilege but it just does not working only for this kaspersky data folder. 我什至为当前用户提供了完全控制的安全特权,但是它仅不适用于该卡巴斯基数据文件夹。 I can only modify data when I turning off "Self protection option". 我只能在关闭“自我保护选项”时修改数据。 I just want to give same type of security into my application data folder. 我只想在我的应用程序数据文件夹中提供相同类型的安全性。 I know how to give security to my folder or file but dont know the option by which option kaspersky doing it. 我知道如何为我的文件夹或文件提供安全性,但不知道该选项由卡巴斯基来执行。 If any one have any idea please share with me. 如果有任何想法,请与我分享。 Thanks. 谢谢。

Much of what you're looking for can be accomplished with NTFS directory permissions. 您要查找的大部分内容都可以通过NTFS目录权限来完成。 Just deny Everyone (and SYSTEM, if you're feeling lucky) the permission to create files in the folder or write/append files in the folder. 只是拒绝所有人(如果您很幸运,也可以拒绝SYSTEM)在文件夹中创建文件或在文件夹中写入/附加文件的权限。 Make sure the permissions apply to "This folder only" and "Files only" respectively, though, or your folder will probably become rather useless til you remove said restriction. 不过,请确保将权限分别应用于“仅此文件夹”和“仅文件”,否则,除非您删除上述限制,否则文件夹可能会变得毫无用处。

The permissions you need probably won't be obvious. 您所需的权限可能不会很明显。 You'll need to be in the advanced permissions dialog in order to set them. 您需要在高级权限对话框中进行设置。

Anyway, you don't really need C# to do it. 无论如何,您实际上并不需要C#来完成。 You could use code if you really wanted to, but you'd do it the same way you'd set any other permissions on files and folders. 如果您确实愿意,可以使用代码,但是可以使用对文件和文件夹设置任何其他权限的相同方法。

Finaly I got it ... kaspersky protecting its folder by starting a Service. 最终我得到了它……卡巴斯基通过启动服务来保护其文件夹。 For that reason the Unlock software unable to track the process handle. 因此,Unlock软件无法跟踪进程句柄。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当卡巴斯基安全软件警告病毒我的代码被阻止时,我该如何解决? - How can i fix when Kaspersky Internet Security alert virus my code block? 我可以在我的 C# ASP.NET MVC 应用程序中将 App_Data 文件夹用作普通文件夹吗? - Can I use App_Data folder as a normal folder in my C# ASP.NET MVC application? 如何在不使用C#刷新应用程序的情况下动态读取文件夹中的XML文件? - How can I dynamically read XML files in a folder without refreshing my app using C#? 如何在C#中的app.config文件中提供文件夹路径 - How to give a folder path in app.config file in C# 我可以像在 VB 中一样在 C# 中为控件提供索引属性吗? - Can I give controls an index property in C# like in VB? 给定文件夹(如 C:\Random 文件夹),如何找到所有扩展名并打印它们 C#? - A given folder (like C:\Random Folder), how can I find ALL the extensions and print them C#? 如何使用C#访问iOS App的Documents文件夹 - How can I access Documents folder of iOS App with C# 如何将文件保存到我的Project文件夹c# - How can I save files to my Project folder c# 我如何在 C# 中验证文件夹是否具有“安全”到“所有人 - 完全控制:允许”? - How can I verify in C# if a folder has “Security” to “Everyone - Full Control: Allow”? 如何授予我的C#应用​​管理权限? 清单文件 - How to give my C# app administrative rights? manifest file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM