Last post Sep 02, 2013 05:22 AM by bisht.mahe
Sep 01, 2013 01:27 PM|bisht.mahe|LINK
Sep 01, 2013 02:09 PM|PatriceSc|LINK
I would first try to do it with Windows Explorer. This is just to see how much times it takes and what you could expect. Also it would be liekly quicker if inheritance is used. Here it seems to be applied recursively to each and every file.
Some more context about why you need to do that could help (typically removing/adding individual users access to folders is not something you want to do, for exammple you could consider to just remove/add the user to/from a group).
Sep 01, 2013 02:09 PM|smirnov|LINK
Well, does it work faster if you do it directly in Windows?
What is the reason of giving the rights per user and per group? In case of giving rights per group you would need to change membership in the group.
Sep 02, 2013 03:36 AM|bisht.mahe|LINK
Yes, from widnow explore also there is same time.
Allow inheritable permission
from the parent
to propagate Checkbox is checked at Parent folder. I provide
the applications access to users listed on folder whereas applications exist inside folder.
Sep 02, 2013 03:50 AM|bisht.mahe|LINK
from widnow explore also It is slow. If i remove the user from window explorer it takes 18 minutes where from dirInfo.SetAccessControl(fSecurity) takes 24 minute.
Allow inheritable permission from the parent to propagate Checkbox is checked at Parent folder. I provide the applications access to users listed on folder whereas applications exist inside folder.
Sep 02, 2013 04:21 AM|smirnov|LINK
So, if this is slow in windows, why do you expect to make it faster in .net? As I already suggested above, try to use groups instead of giving permissions per user.
Sep 02, 2013 05:22 AM|bisht.mahe|LINK
Thanks for your excellent suggestion. I wll plan.