Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Security > Use RAM for NTFS security permission changes

Reply
Thread Tools Display Modes

Use RAM for NTFS security permission changes

 
 
John Peterson
Guest
Posts: n/a

 
      08-20-2009
I want to suggest that you alter the way NTFS permission settings are applied
in Windows XP, Vista and 7 with the goal of minimizing the number of HDD
queries that are made when changing security settings for many files at a
time (for example for large directory or a drive with many files).

I think that you should be able to read the entire file table with security
settings for the directory (and subdirectories) in question in a few hard
drive queries and then makes the changes in RAM and then write it back in a
few hard drive queries. If there is at least 50 MB RAM avaliable the security
settings for at least one million files should fit in RAM. This method may be
up to a thousand times faster than the current method when changing
permissions for several hundred thousand files or more at a time.

From what I can see in File Monitor and Process Monitor it seems like
changing a security setting for one files require around five hard drive
queries per file with the current method, and therefore a total of five
million HDD queries for the entire task. It therefore takes between 15
minutes and 30 minutes to change the permissions for a million files. If RAM
was utilized the same task could possibly be done in a few seconds.

(It doesn't seem to make a difference a difference if most files and
directories inherit all permissions. Windows still feels it wants to make
queries for all files. If only non-inherited files and directories were
queried that could possibly reduce the number of HDD queries with 75% or more
for a normal directory. But if the security settings where in RAM that would
not make much of a difference since it would be up to thousand times faster
to alter the table than when the HDD is queried several times per file.)


Thanks for making a great OS

Best Regards
John Peterson

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/communities...vista.security
 
Reply With Quote
 
 
 
 
Richard G. Harper
Guest
Posts: n/a

 
      08-20-2009
So what happens, in your happy scenario, if:

1. A file changes, is deleted, or moved during the process?
2. A stack overflow allows a hacker to access or expose memory contents?
3. Power fails on the workstation during the process?

Frankly I expect that any such process that touches several hundred thousand
files will take a while and have no interest in shortcuts to try to speed it
up at the risk of failure.


"John Peterson" <> wrote in message
news:25FA9456-581D-49B4-B885-...
> I want to suggest that you alter the way NTFS permission settings are
> applied
> in Windows XP, Vista and 7 with the goal of minimizing the number of HDD
> queries that are made when changing security settings for many files at a
> time (for example for large directory or a drive with many files).



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows 2003 Ent SP1 Server Crash Issues Will Owens Windows Server 2 03-03-2010 01:13 AM
Service Pack 2 CD. Is it best to get a new one? Grimy Windows Update 4 08-19-2009 02:44 PM
Re: How do I modify security permission for this error PetrolHead Windows 64 Bit 0 11-12-2007 08:06 AM
How could I do?? (updates) Corsair Windows 64 Bit 5 06-17-2007 03:57 PM
Anonymous Logons Edward B Windows Server 0 05-02-2005 11:57 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59