Home Contact

René Wieldraaijer's blog

Microsoft IT Professional

News

Twitter







Archives

Syndication:

NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

I have been using the various versions of the Microsoft Windows product line since NT4 and I really thought I knew the ins and outs about the NTFS filesystem by now. There were always a few rules of thumb to understand what happens if you move data around. These rules were: "If you copy data, the copied data will inherit the permissions of the location it is being copied to. The same goes for moving data between disk partitions. Only when you move data within the same partition, the permissions are kept." 

Recently I was asked to assist in troubleshooting some NTFS related issues. This forced me to have another good look at this theory. To my surprise I found out that this theory does not completely stand anymore. Apparently some things have changed since the release of Windows Vista / Windows 2008. Since the release of these Operating Systems, a move within the same disk partition results in the data inheriting the permissions of the location it is being copied into. A major change in the NTFS filesystem you would think! 

Not quite! The above only counts when the move operation is being performed by using Windows Explorer. A move by using the 'move' command from within a cmd prompt for example, retains the NTFS permissions, just like before in Windows XP and older systems. Conclusion: The Windows Explorer is responsible for changing the ACL's of the moved data. This is a remarkable change, but if you follow this theory, the resulting ACL after a move operation is still predictable. 

We could say that since Windows Vista and Windows 2008, a new rule set applies: "If you copy data, the copied data will inherit the permissions of the location it is being copied to. Same goes for moving data between disk partitions and within disk partitions. Only when you move data within the same partition by using something else than the Windows Explorer, the permissions are kept."

The above behavior should be unchanged in Windows 7 / Windows 2008 R2, compared to Windows Vista / 2008. But somehow the NTFS permissions are not so predictable in Windows 7 and Windows 2008 R2. Moving data within the same disk partition the one time results in the permissions being kept and the next time results in inherited permissions from the destination location. I will try to demonstrate this in a few examples:

Example 1 (Incorrect behavior):

Consider two folders, 'Folder A' and 'Folder B' with the following permissions configured.

 

 

 

 

 

 

 

 

  

Now we create the test file 'test file 1.txt' in 'Folder A' and afterwards move this file to 'Folder B' using Windows Explorer.

 

 

 

 

 

 

 

 

 

 

 
According to the new theory, the file should inherit the permissions of 'Folder B' and therefore 'Group B' should appear in the ACL of 'test file 1.txt'. In the screenshot below the resulting permissions are displayed. The permissions from the originating location are kept, while the permissions of 'Folder B' should be inherited.

 

 

 

 

 

 

 

 

 
Example 2 (Correct behavior):

Again, consider the same two folders. This time we make a small modification to the ACL of 'Folder A'. We add 'Group C' to the ACL and again we create a file in 'Folder A' which we name 'test file 2.txt'.

 

 

 

 

 

 

 

 

 

 Next, we move 'test file 2.txt' to 'Folder B'.

 

 

 

 

 

 

 

 

 

 

 

Again, we check the permissions of 'test file 2.txt' at the target location. We can now see that the permissions are inherited. This is what should be happening, and can be considered 'correct behavior' for Windows Vista / 2008 / 7 / 2008 R2. It remains uncertain why this behavior is so inconsistent. At this time, this is under investigation with Microsoft Support. The investigation has been going for the last two weeks and it is beginning to look like there is no rational reason for this, other than a bug in the Windows Explorer in Windows 7 and 2008 R2. As soon as there is any certainty on this, I will note it here in this blog.

 

 

 

 

 

 

 

 

 
The examples above are harmless tests, by using my own laptop. If you would create the same set of folders and groups, and configure exactly the same permissions, you will see exactly the same behavior. Be sure to use Windows 7 or Windows 2008 R2.

 
Initially the problem arose at a customer site where move operations on data on the fileserver by users would result in unpredictable results. This resulted in the wrong set of people having àccess permissions on data that they should not have permissions to. Off course this is something we want to prevent at all costs.

 
I have also done several tests with move operations by using the move command in a cmd prompt. This way the behavior is always consistent. The inconsistent behavior is only exposed when using the Windows Explorer to initiate the move operation, and only when using Windows 7 or Windows 2008 R2 systems. It is evident that this behavior changes when the ACL of a folder has been changed, for example by adding an extra entry. The reason for this remains uncertain though. To be continued….

A dutch version of this post can be found at: http://blogs.platani.nl/?p=612


Sunday, March 06, 2011 10:52 PM

Feedback

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

This is not new for me, I noticed it with Windows 2003 and Windows XP. When you COPY files it is oke, when you MOVE files you will move the NTFS security too. I think this is by design. 4/13/2011 10:04 AM | Marcel

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

Hello Marcel.

I think you are missing the point.
What I am trying to bring across is that a move sometimes moves the permissions and at other times inherits the permissions from the location the file is being moved to.

I also narrowed the point down a bit further here:
http://geekswithblogs.net/renewieldraaijer/archive/2011/03/13/windows-7-and-2008-r2---windows-explorer-issues-ntfs.aspx

I have been working on this with Microsoft for the past 8 weeks and they have not come up with an explanation for this. It seems something is very broken in the Explorer that comes with Windows 7 and Windows Server 2008 R2. 4/13/2011 10:10 AM | René Wieldraaijer

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

has anything been updated from microsoft? any answers as to why this could be the case or hotfix. we see a similar issue where new folders and files are not inheriting all permisions from parent...sometimes they do, other times they don't and sometimes only part of the permissions. if you remove all ACL form parent folder and reapply, then child objebts inherit correctly. 6/6/2011 8:06 PM | Mehrdad

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

any news about this issue? 11/24/2011 4:26 PM | burtzz

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

Did you check out http://support.microsoft.com/kb/2560088/en-us? 1/16/2012 12:05 PM | rapli

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

That is the hotfix that was created as a result of this Microsoft call. I had not updated this blog item yet. Thanks anyway! 1/16/2012 1:08 PM | ReneWieldraaijer

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

Hi.
Works fine with the Hotfix on the server - When working on the server, but If you are moving files on a Share from a windows 2003 server - The isue is unresolved :-( 2/14/2012 12:52 PM | Joern W.

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

hi,

i tried to install http://support.microsoft.com/kb/2560088/en-us? but failt.

I tells me that it is not suiteable for my system. but i took the right language and system-version...

any idea? 5/15/2012 7:45 AM | vom Hohenstein

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

I have documented a similar issue on my own blog. I was lead here by a reader of my blog.
Are you sure you haven't got this the other way around? On my own tests I got the opposite results but came up with a hypothosis for it. Check it out at http://think-like-a-computer.com/2011/07/24/moving-files-on-the-same-ntfs-volume-does-inherit-permissions

BTW I have linked to you from my own site so I'm not trying to get inbound links from you, it is relevent :) 5/15/2012 8:30 AM | Graham

# re: NTFS Issues in Windows 7 and 2008 R2 - 'Is it a Bug?'

One of our customers have the same problem. He wants to install the Hotfix 2560088 but it also tells him that it is not suitable for his system. (Windows 2008R2 Ent German).

Did anyone have a clue how to get the hotfix installed?

Regards 5/21/2012 1:01 PM | Thomas Biebl

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: