• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 404
  • Last Modified:

Retain security, permisisons shares when copying files

This is an old on going issue/question I'm sure but having issues trying to copy shares to another drive letter and keeping the sercurity permissions and the shares.  
This will be needed on a server 2008 64bit datacenter, but right now testing this on win7 64 bit .
both are running on vmsphere 4 off equallogic SAN, but shouldn't matter.

I have tried the robocopy GUI and the Newer RichCOPY gui.   The Robocopy so far is the better option for me durning testing but still issues.

on win7 x64 env testing c:\sharetest with subd1 and subd2 to e:\  RC_pathtab RC_pathtab RC_optionstab
The subdirectories are not coming over with the matching security permissions(groups/users) as the source, while I'm not even sure if the share gets addressed with this util or not?

Also on one win7x64 same settings I get subdirectories to copy with no security permission carried over still but on another I can't get the subdirectories to copy over at all.

comments?
0
dee30
Asked:
dee30
  • 7
  • 3
  • 2
  • +1
1 Solution
 
ReneGeCommented:
You must check /COPYALL
0
 
dee30Author Commented:
That doesn't work.  I am not choosing to not do the U due to permissions on using the U.   The copyall and copy DTOAS is the same except from the U from what I'm getting.  
0
 
ReneGeCommented:
Is your targer drive NTFS?
0
Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

 
dee30Author Commented:
yes source and destination are NTFS
0
 
dee30Author Commented:
Fixed my one problem after realizing I inadvertantly was clicking on options /s when i meant to select the second one /e.  Now my main issue is that no security permissions are coming over, while how and does this product handle/address copying share settings?  if not suggestions/thoughts on that, too?
0
 
GovvyCommented:
Use 'net share' command to export settings
0
 
dee30Author Commented:
Govvy, please expand.  Not clear how this will work on it's own and copying FS data over quickly and without timing out etc...
0
 
dee30Author Commented:
k, final settings are to remove the \mir so that leaves me with the /e /sec and /copy DTOAS.   Importantly, although domain used logged in with is part of the domain admins group that is part of the  local admin group which has write permissions on the destination loc, added the domain admin user specifically with fulle(includes write) permissions to E: and it worked.   Removed domain admin id  from e:\ when done.  So The Sec being copied over works for me, but still the question

about copying shares over is outstanding?  How do i tackle that and can I do that with robocopy gui or not?
0
 
GovvyCommented:
Look at SCOPY for the shares: http://support.microsoft.com/kb/174273
0
 
ReneGeCommented:
Here is the command line I use to mirror files including NTFS security settings:

Robocopy "C:\Source" "D:\Destination" *.* /MIR /COPYALL /ZB /NDL /TEE /TS /NP /LOG+:"%LogFile%"

Open in new window

0
 
Steve KnightIT ConsultancyCommented:
You could also use dfs and have it replicate the files between the two servers...

The share details are stored in the registry and easiy tweaked from d: to e: or whatever without losing other settings, permissions etc. if you wish:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\LanmanServer\Shares

Steve
0
 
dee30Author Commented:
Dragon-it thank you for addressing the only outstanding issue, while I resolved my robo copy issue on my own.    What's the steps to manipulating the reg key say in the scenario where you robocopy from e.g. c: to e: on an existing 08 svr x64bit?  
0
 
dee30Author Commented:
Pointed me in right direction with reg key on o/s issue.
0
 
Steve KnightIT ConsultancyCommented:
Well thanks for the points... maybe not the B grade but then I did just drop in at the end of the Q...
If you take a look at the reg. key it is fairly self explanatory, at least it is on Windows 7 and Windows 2008 here, I can't remember if the entries show well in Windows 2003 regedit for instance.

You would have to:

Amend the entry
Restart server service
Check shares are correct, event log will show any that fail to map correctly and you can check through net share, explorer or Computer management etc. what is shared where thenb.

Doesn't hurt to export the whole key to file before fiddling of course.

Steve
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 7
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now