Click here to get back home

Strange effect with inheritence flags on Windows XP and NT 4

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Strange effect with inheritence flags on Windows XP and NT 4 Rob Nicholson 06-13-2007
Posted by Rob Nicholson on June 13, 2007, 11:19 am
Please log in for more thread options
This is all very bizarre...

NT 4 server running under NT 4 domain called SERVER1 with an E: drive. Open
\SERVER\E$ from a Windows XP PC and create a folder called Test.
Look at the permissions from Windows XP and the folder doesn't appear to be
inheriting it's permissions from the parent - the two permissions shown on
there are not greyed out.

Now log to a Windows 2003 server (terminal server in this case) with the
same account and look at the same folder. The inherited flag is set and the
two groups are greyed out.

So this is an obvious anomaly - Windows XP is showing no inheritance (which
is wrong as there is inheritance) and Windows 2003 is showing it correctly.

Now carry out the same exercise on SERVER2 which is running Windows 2000 but
in the same NT 4 domain and it works as expected. Create a folder remotely
from Windows XP and look at the permissions and the inherited flag is set.

So the "bug" appears to be in Windows XP displaying the permissions on a
folder hosted on an NT 4 server.

All a bit strange...

Cheers, Rob.



Posted by Al Dunbar on June 13, 2007, 6:25 pm
Please log in for more thread options

> This is all very bizarre...
>
> NT 4 server running under NT 4 domain called SERVER1 with an E: drive.
> Open \SERVER\E$ from a Windows XP PC and create a folder called Test.
> Look at the permissions from Windows XP and the folder doesn't appear to
> be inheriting it's permissions from the parent - the two permissions shown
> on there are not greyed out.
>
> Now log to a Windows 2003 server (terminal server in this case) with the
> same account and look at the same folder. The inherited flag is set and
> the two groups are greyed out.

What permissions are shown when you check this from the NT4 system itself?

> So this is an obvious anomaly - Windows XP is showing no inheritance
> (which is wrong as there is inheritance) and Windows 2003 is showing it
> correctly.
>
> Now carry out the same exercise on SERVER2 which is running Windows 2000
> but in the same NT 4 domain and it works as expected. Create a folder
> remotely from Windows XP and look at the permissions and the inherited
> flag is set.
>
> So the "bug" appears to be in Windows XP displaying the permissions on a
> folder hosted on an NT 4 server.
>
> All a bit strange...

Yes, it is all a bit strange - but not too surprising, given some of the
changes that were made to NTFS in the post NT4 era.

As I understand it, the earlier NTFS native to NT4 does not support dynamic
inheritance (an object's effective permissions change as the parent
container's permissions change), only static inheritance (at object creation
time, the new object inherits a copy of the container object's permissions).
That said, the later versions of windows try to show permissions in a way
that simulates dynamic inheritance, even when it does not exist. As we were
making the move from our old NT4 environment to w2k, we were advised to stop
managing permissions from NT4 once we were using w2k, as certain anomalies
could result. Or was that when we moved from w2k to w2k3? I also vaguely
seem to recall that there might have been an update required for the older
o/s to coexist with the new one in terms of how they dealt with shared NTFS
partitions.

Although it might seem useful to understand exactly what's going on here, I
think that the best way to deal with such anomalies is to do things in such
a way that you can ignore them. In your case, I would recommend phasing out
your NT4 servers in favour of w2k3, and possibly the same with your w2k
servers. You could either upgrade them in place, or bring in new servers
and robocopy the data over.

/Al



Posted by Rob Nicholson on June 14, 2007, 3:50 am
Please log in for more thread options
> What permissions are shown when you check this from the NT4 system itself?

That's the problem - as you mention below, NT 4 doesn't know about the
concept of parent inheritence so can't display it.

> As I understand it, the earlier NTFS native to NT4 does not support
> dynamic inheritance (an object's effective permissions change as the
> parent container's permissions change), only static inheritance (at object
> creation time, the new object inherits a copy of the container object's
> permissions). That said, the later versions of windows try to show
> permissions in a way that simulates dynamic inheritance, even when it does
> not exist. As we were

That will explain it then! Windows XP will be trying to work out if the ACL
on the sub-folder is the same as it's parent and if it is, show it as
inherited even though it's not inherited. For some reason, it's not working
in this instance so it's showing it as not inherited.

I wondered if later NTFS systems walked up the tree to find the permission
when inherited was set but I don't think it is the case as applying a new
permission at the root of a large tree still takes a while to apply. I'm not
surprised the SID gets written all the way down the tree. The performance
hit of walking back up a deep tree to find the inherited permission could
take quite a while.

Cheers, Rob.



Similar ThreadsPosted
Reading Directory Access Flags from Filemon June 21, 2007, 11:18 am
Effect of NetBIOS Over TCP on File Sharing September 27, 2005, 9:55 pm
2003 Policy doesn't take effect until reboot June 6, 2006, 3:54 am
What security policies effect tasklist.exe password prompt behavior? February 29, 2008, 9:29 am
Strange issue with ACL September 26, 2005, 7:21 pm
very very strange problem.. please help! February 24, 2007, 10:40 am
Strange Stuff June 19, 2008, 5:51 pm
strange file on c: root October 18, 2005, 11:04 am
Strange appearances in Logs December 21, 2005, 8:10 am
NTFS Deny not Working STRANGE September 30, 2005, 4:40 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap