Tutorial :Windows 2003 Server - File Permissions


I have a Windows 2003 web server with a tree of folders that contains around 100GB of small images. I need to update the permissions on this folder to add a new user with access. I tried to do this by right clicking on the folder and adding the new user but the process never completed. I left it running for around an hour but it started to heavily impact the peformance of the server. Is there any other way to change these folder permissions without affecting server performance?

Many Thanks Nick


You can try to use inheriting instead of explicitly specifying security settings for each file.

Right Click on the folder -> Properties -> Security -> Advanced. Make sure that "Allow inheritable permissions...." is checked. Add User and specify her permissions.

Other way is to set permissions programmatically. Here is a code sample in C# that shows how to set ACL. Programmatic way is more flexible: you can wait periodically before setting security permissions. Hence server perf will not suffer.


You're pretty much stuck in this. Changing permissions at the top of a large directory tree of files (we have one such structure with over 3 million files) just plain takes a LONG time on NTFS. Inheritable means you only have to change the right in the one spot, but the system still has to touch every file and directory that inherits from that rights change to make the change effective. Hitting cancel or otherwise terminating this process will give you inconsistent rights in that tree.

For large structures this can take hours, and performance can take a big hit. For our big structure, we only change permissions at the top during off-peak hours just because of this.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »