GordonLiq
asked on
copy file with share and security setting
Hi ,
I have a shared folder in windows 2003 box , svr\shared
there are lots of sub folder with different share and security settings.
now I am planning to move the folder to new windows 2008 R2 box svrnew\sharedfoler
Can I copy the folder from old to new box and keep the share and security setting so that I just change the reference in clients?
I have a shared folder in windows 2003 box , svr\shared
there are lots of sub folder with different share and security settings.
now I am planning to move the folder to new windows 2008 R2 box svrnew\sharedfoler
Can I copy the folder from old to new box and keep the share and security setting so that I just change the reference in clients?
Sure. Just use xcopy. From a command prompt type xcopy -? and you will see a list of all the switches. The one that copies the ownership and ACL security is /O
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The above command does copy all the NTFS security of the objects you are copying.
You should double check the root folder of what you are copying to make sure its permissions got over as well.
Also this does not take into account any objects local to the server. Domain accounts and accounts like the local servers administrator are fine, but if you have any accounts defined on the local server they don't exist with the same SID on the new server and won't be copied.
You will also have to check the share permissions on the old share and put them on the new share when you create it. Most folks use everyone or "authenticated users" on the share and let the ntfs security do all the work.
You should double check the root folder of what you are copying to make sure its permissions got over as well.
Also this does not take into account any objects local to the server. Domain accounts and accounts like the local servers administrator are fine, but if you have any accounts defined on the local server they don't exist with the same SID on the new server and won't be copied.
You will also have to check the share permissions on the old share and put them on the new share when you create it. Most folks use everyone or "authenticated users" on the share and let the ntfs security do all the work.
ASKER
Does this copy the share settings as well.
says I have a subfolder \\svr\shared\mysettins Shared as \\svr\myPersonSetting , does this copied as well?
says I have a subfolder \\svr\shared\mysettins Shared as \\svr\myPersonSetting , does this copied as well?
Not it just copies the files and the NTFS permissions.
You would ave to do the shares and any associated permisions as well.
You would ave to do the shares and any associated permisions as well.
ASKER
So there is no way to copy the folders with the Share Settings?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.