Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

Use RAM for NTFS security permission changes

microsoft.public.windows.vista.security






Speedup My PC
Reply
  #1 (permalink)  
Old 08-20-2009
John Peterson
 

Posts: n/a
Use RAM for NTFS security permission changes
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...sta.sec urity
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-20-2009
Richard G. Harper
 

Posts: n/a
Re: Use RAM for NTFS security permission changes
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" <JohnPeterson@discussions.microsoft.com> wrote in message
news:25FA9456-581D-49B4-B885-8422C73C1D5A@microsoft.com...
> 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

vB 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
Huge Bug in security Filesystem of NTFS ? Max microsoft.public.windows.vista.security 4 03-14-2008 19:11
Modify NTFS Permission with script like Xcalcs.vbs ...... primax microsoft.public.windows.vista.networking sharing 0 06-25-2007 12:23
RE: Modify Multiple files' NTFS permission =?Utf-8?B?bXN4Y21z?= microsoft.public.windows.vista.general 0 02-28-2007 17:47




All times are GMT +1. The time now is 01:18.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120