Google Answers Logo
View Question
 
Q: Windows 2000 permisions ( Answered 4 out of 5 stars,   1 Comment )
Question  
Subject: Windows 2000 permisions
Category: Computers > Operating Systems
Asked by: stevenclary-ga
List Price: $5.00
Posted: 08 Apr 2003 09:36 PDT
Expires: 08 May 2003 09:36 PDT
Question ID: 187698
When I copy a folder from an NT machine (in old domain a)- over to a
Windows 2000 server (in the new ad domain), the folder permisions
change.

(I thought I had this figured out when I realized I had the little
"Allow inheritable permissions from parent to propagate to this
object" box checked.  Even after I uncheck this box, the problem still
exsist.)

I'm copying over web site foldes from IIS 4 to IIS 5, but I need them
to maintain their permisions (with the exception of adding the
IUSR_machine user for anonymous access).

Clarification of Question by stevenclary-ga on 08 Apr 2003 09:40 PDT
(I am not sure if the doamins have anything to do with it.)
Answer  
Subject: Re: Windows 2000 permisions
Answered By: cerebrate-ga on 08 Apr 2003 14:25 PDT
Rated:4 out of 5 stars
 
Dear stevenclary-ga,

I'm afraid that beubliss-ga's comment doesn't quite reflect the
realities of the situation.

There are actually two separate considerations here. The first is how
the permissions on files and folders are affected by copying files:

"When a file is copied from one location to another location, whether
on the same or different volume, a new file is created in the
destination location. The file inherits the permissions, the Access
Control List (ACL), from its parent folder.

When a file is moved from one location to another on the same volume,
the file retains its security descriptor. Only the pointer to the
resource is modified.

When a file is moved from one location to another on a different
volume, it acts similar to the copy, except the file is deleted from
the source location. The moved file inherits the permission from the
parent folder."
  - Microsoft Knowledge Base Article - 266627
    http://support.microsoft.com/?kbid=266627

"A complete copy of a file's ACL is stored with the file, and the only
difference between explicitly defined and inherited ACL properties is
that the inherited ones are simply marked as such. However, when you
copy or move a file to another volume, you are in essence creating an
entirely new file with a whole new ACL! Moving it around on the SAME
volume just modifies the existing pointer to the file -- you're not
creating anything, and so the ACL is not rewritten. That's why moving
or copying a file to a different volume will cause it to inherit the
attributes of wherever it's being moved to: it's as if you've created
a whole new file in that folder, one which is beholden to whatever
inheritable attributes come from its parent."
  - Windows 2000 Power Users, Volume 1, Number 26
    http://www.thegline.com/win2k/issues/2001/26.html

In summary, whenever you copy a file, or when you move it to any
volume - such as another machine - other than the one it is currently
on, it gets a new set of permissions based on wherever you just moved
it to. That's part of the design of Windows NT/2000, as explained in
that article.

That said, there are ways around this, using the XCOPY command or
registry setting described below, or the SCOPY command from the
Resource Kit:

"If you use the XCOPY command to mass-move files or folders, the /O or
/X switch will preserve the way permissions are both retained and
inherited by the objects in their target destination. But what if you
want to preserve permissions continually, without having to use XCOPY?

To force ACLs always to be preserved when copying files between
volumes, fire up REGEDIT and navigate to
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer.
Add a REG_DWORD value named ForceCopyAclwithFile and set it to 1. You
will either need to log off and back in again or reboot the system for
this to take effect. To undo this, either delete the key or set it to
0."
  - Win2000 Tips & Newsletters -> Administrator
    http://searchwin2000.techtarget.com/tip/1,289483,sid1_gci876658,00.html

You should also be aware that there is a domain issue. If the new AD
domain trusts the old NT domain, then you will be able to copy the
permissions using these tools and have them work, at least until the
old NT domain is decommissioned.

If this is not the case, however, the old permissions can't be
successfully copied onto a machine in the new domain - even if the
accounts have the same names, the internal security ID that Windows
uses is different, and so the permissions won't be recognised. In this
situation, I'm afraid you'll need to rebuild the permissions from
scratch.

I hope this answers your question. If there is anything that remains
unclear, please feel free to request a clarification,

cerebrate-ga

Search strategy:

Personal knowledge as W2K admin.
Google Microsoft Search, "ACLs and copying" -
://www.google.com/microsoft?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=ACLs+and+copying

Request for Answer Clarification by stevenclary-ga on 10 Apr 2003 05:03 PDT
You said:
You should also be aware that there is a domain issue. If the new AD
domain trusts the old NT domain, then you will be able to copy the
permissions using these tools and have them work, at least until the
old NT domain is decommissioned.


Can you clarify if you meant that I would be able to copy until the
old NT doamin is decommissioned ... or they would work (after the
copying) untill the nt domain is decommissioned?


Also, what is scopy?  Is there any advantages over xcopy?  Another
thought... what if I did a backup and then redirected the restore to
the new volumn.

Your answer is very helpful, thank you!

Clarification of Answer by cerebrate-ga on 23 Apr 2003 02:08 PDT
Dear stevenclary-ga,

"Can you clarify if you meant that I would be able to copy until the
old NT doamin is decommissioned ... or they would work (after the
copying) untill the nt domain is decommissioned?"

What I meant was that the permissions would work (after copying) until
the nt domain was decomissioned. When they're used, the new domain
will go back to the old domain to verify them - as soon as it's
decommissioned, that won't be possible any more.

As for scopy, it's a tool provided in the Windows NT 4.0 Resource Kit
for copying files along with their attached permissions. Its
functionality was rolled into XCOPY in Windows 2000, so you should
only need it if you do the copies from the old machines, not the new
machines.

The possibility of doing a backup and then restoring onto the new
volume is also a possibility, as most backup software carries ACLs
along, but this again will only work until the old domain is
decomissioned, at which point you would need to have changed the
permissions as I described.

I apologise for not getting back to you earlier with this information,
and thank you for the high rating.

cerebrate-ga
stevenclary-ga rated this answer:4 out of 5 stars and gave an additional tip of: $2.00
Great job, thanks for the info.

Comments  
Subject: Re: Windows 2000 permisions
From: beubliss-ga on 08 Apr 2003 13:06 PDT
 
hi stevenclary !

When you copy a file or folder who had already permission, the new OS
(in your case win2k) add normally a permission like
S-1-5-21-1275210071-436374069-725340548-1215 cause the OS don't know
the accounts of the previous OS.

If it's the case, you can delete these, and add all that you want.

Allow inheritable permissions is use to give all the permission to the
rest of the tree (all subdirectories and files).

And the domain shouldn't change anything.

So you said : Even after I uncheck this box, the problem still
exsist.
What problem still ? a problem with the web site ?

I hope helping you ;)

Beubliss

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy