Re: XCOPY deployment -- security failure: "File creation error..."




Here's some things to try:

- Try adding quotes around the paths in case any contain spaces and cmd.exe
is parsing the parameters differently than what you would expect:
xcopy "D:\projects\myProject" "%SERVERPATH%\_code"

- Try removing parameters from xcopy, make it simpler to troubleshoot. For
example, these are different than what you get with explorer.exe: "/o" and
"/exclude:deploy_excludes.txt"

- Try looking at the Security event log on the server, you may need to
enable auditing on both the share and the parent folder.



<matt@xxxxxxxxxxxxxx> wrote in message
news:1157134416.963550.241610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hello,

i am attempting to deploy my local machine's files to a shared
folder on the production machine, elsewhere on the network. here is my
xcopy .bat:

SET SERVERPATH=\\SomeMachine\SomeShare\myProject

ECHO.
ECHO.
ECHO double-check path:
ECHO.
ECHO %SERVERPATH%\
ECHO.
PAUSE

xcopy D:\projects\myProject %SERVERPATH%\_code /e /k /r /o /h /i /d
/y /exclude:deploy_excludes.txt

...this works when testing w/ a local path, but fails on the production
machine w/ the following:

File creation error - This security ID may not be assigned as the
owner of this object.

Unable to create directory - \\SomeMachine\SomeShare\myProject

can anyone help me figure out what this means, and how to fix it?

for debugging i set the network share's permissions to allow "Everyone"
full control. i have no trouble copying the same files over via Windows
Explorer (my local workstation, to the network share's folder).

why would the xcopy fail? does it run under a different process than me
using Windows Explorer? is some sort of impersonation needed?


thanks!
matt



.



Relevant Pages

  • Re: windows explorer deleting whole folders on network computer
    ... Pro on our local network. ... delete a file on the XP computer using Windows Explorer, and instead, ... search and the folder and files are nowhere. ... The Properties of the Recycle Bin contains the "Display Delete ...
    (microsoft.public.windowsxp.general)
  • Re: Need help with Max File Name Length
    ... "Mark L. Ferguson" wrote: ... > Create the folder on the server, log onto the server, and copy from that folder with xcopy. ... >>I am currently managing a small network and have run into a very interesting ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: windows explorer deleting whole folders on network computer
    ... Pro on our local network. ... delete a file on the XP computer using Windows Explorer, and instead, ... search and the folder and files are nowhere. ... Kelli Norman ...
    (microsoft.public.windowsxp.general)
  • Re: Shortcut to network folder in Explorer
    ... I'd like to create a link to a folder in my network ... > The following Knowledge Base article will describe on customizing Windows ... > How To Customize the Windows Explorer Views in Windows XP ...
    (microsoft.public.windowsxp.customize)
  • Re: Router, File Sharing
    ... I copied a folder, then when I ... > should be able to click on it just like you would in your windows explorer ... > drive and hit paste where you want to put it on that hard drive. ... > right click on it, hit map network drive, then choose the drive letter ...
    (sci.med.transcription)