我如何拥有一个网络中的每个人都可以设置访问规则的文件夹? [英] how can i have a folder that everyone in a network can set access rule on it?

查看:67
本文介绍了我如何拥有一个网络中的每个人都可以设置访问规则的文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在我的程序中,第一个管理员用户必须选择一个文件夹,该文件夹应位于共享文件夹中,然后我的程序应将其访问规则更改为"Deny",并且每次管理员需要时,此文件夹的访问规则应更改为"'Allow'',然后再次更改为"Deny".
我使用''DirectorySecurity''类做到这一点,并且可以正常工作.但是,当另一个用户想要更改此文件夹的规则时,就会出现问题.这时我收到一条错误消息,告诉我该用户无法执行此操作.请帮助我.

Hi,
In my program first admin user must choose a folder that it should be in a shared folder and then my program should change its access rule to ''Deny'' and every time that admin wants,the access rule of this folder should change to ''Allow'' and then change to ''Deny'' again.
I do this with ''DirectorySecurity'' class and its work correctly. But the problem occurs when another user wants to change the rule of this folder. At this times i receive an error that tells me this user can not do this action. Please help me.

推荐答案

^ ]可以帮助您入门.
This article[^] could help you get started.


这篇关于我如何拥有一个网络中的每个人都可以设置访问规则的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆