Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 17-May-11 19:13pm
v2

1 solution

This article[^] could help you get started.
 
Share this answer
 
Comments
mphoenixe 23-May-11 1:26am    
Thanks, but i already tried this way and my problem didnt solve.my problem is that in my program admin user must deny all users to access to this folder so users just have access to it through the program not directly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900