Answered Robocopy Permissions Issue

  • Monday, January 28, 2013 7:57 PM
     
     

    We have a file server running windows server 2003 that stores data that we want to sync with several laptop users. The users have a mapped network drive to this server where they place files that have been changed or modified. Then in order for all the laptop users to get the updated files, we run a roboy copy script that copies all the data from the server to their local C drive. This is so that the data is available when they are offline. Each of the users are administrators on the local machine, but standard users on active directory.

    When i run the robocopy script on one of the laptops logged in as the user of that laptop, i get an error "A required privledge is not held by the client". One of our users noticed that this error is prevetning the copy, so the data on his local c drive is not up to date with the data on our server.

    The user can created files, directories, ect on the server, and has the permission to do all of these changes, but for some reason Robocopy won't copy the files from the server to the laptop.

    One other note, if I log in as myself, a netowkr admin, I can run the robocopy script just fine, with no errors.

    Example of one of our lines in the robocopy batch file:

    robocopy "\\server\service\office\Forms" "c:\Service Sync\office\Forms" /mir /copyall /e /zb /R:1 /W:1

All Replies

  • Monday, January 28, 2013 8:34 PM
     
     

    It would be useful to see the output from this command:

    cacls  "c:\Service Sync\office\Forms"

  • Monday, January 28, 2013 9:08 PM
     
     
    The user that I am logged into has this permission: (I) (OI) (CI) (F)
  • Monday, January 28, 2013 9:21 PM
     
     

    Sorry, I need to see the whole output, not just your selection. Right-click the console screen to mark the text with your mouse, then press Enter to copy.

    What do you get when you type this command in a Console screen:

    copy "%comspec%"  c:\Service Sync\office\Forms

  • Monday, January 28, 2013 9:38 PM
     
     

    I did the copy command you mention above, it told me 1 file was copied.

    Here is the full output from the first command:

    C:\Users\srasmussen>cacls  "c:\Service Sync\office\Forms"
    c:\Service Sync\office\Forms D****G\mikpad:(ID)F
                                 CREATOR OWNER:(OI)(CI)(IO)(ID)F
                                 NT AUTHORITY\SYSTEM:(OI)(CI)(ID)F
                                 BUILTIN\Administrators:(OI)(CI)(ID)F
                                 D*****G\srasmussen:(OI)(CI)(ID)F
                                 BUILTIN\Users:(CI)(ID)(special access:)
                                                       SYNCHRONIZE
                                                       FILE_WRITE_DATA
                                                       FILE_APPEND_DATA

                                 BUILTIN\Users:(OI)(CI)(ID)R


    C:\Users\srasmussen>

  • Monday, January 28, 2013 9:47 PM
     
     
    I suspect that one of the files in the target folder is protected. Robocopy might try to delete it because you use the /MIR switch. Does the problem persist without the switch?
  • Monday, January 28, 2013 9:56 PM
     
     

    i removed the MIR switch and the issue still persists.

  • Monday, January 28, 2013 10:37 PM
     
     

    Let's find out where exactly the problem lies. Use the command below exactly as it is, then examine the log file in detail.

    xcopy  /y  /c /e  "\\server\service\office\Forms" "c:\Service Sync\office\Forms\"  1>c:\ServiceSync\copy.log  2>&1

  • Tuesday, January 29, 2013 8:36 PM
     
     
    I will try that, but we would like to use robocopy, not xcopy.
  • Tuesday, January 29, 2013 8:50 PM
     
     Answered
    i removed the /copyall switch and changed the path to my server drives using the mapped newtork letter dirve instead of the server name and that solved the problem.
  • Wednesday, January 30, 2013 1:40 AM
    Moderator
     
     

    Hi,

    Glad to hear the issue has been solved. Thanks for sharing. We really appreciate your time and efforts. Hope your experience will help other community members facing similar problems.

    Regards,


    Vincent Wang
    TechNet Community Support