Link to home
Start Free TrialLog in
Avatar of agorts
agortsFlag for Greece

asked on

"ERROR 1314 (0x00000522) Copying NTFS Security to Destination Directory" - Cannot copy empty folders with NTFS permitions...

I am trying to use robocopy for copying a folder structure with defined security permissions and preserve the ntfs permissions...

My script is: (see bellow in code snippet)

When I run it from my user (Domain Admins) run OK, but if I run it through a user which has full permissions in "source" and in "target" but does not belongs to Domain Admins I get the error:
ERROR 1314 (0x00000522) Copying NTFS Security to Destination Directory \\sbmain.local\sbdfs\DPT_Technical\Templates\PROJECT_Template\
A required privilege is not held by the client.

Please advice

robocopy.exe \\Source\PRJTemplate \\Target\NewPrj /LOG+:\\Source\_log.log /E /COPYALL /NP /R:2 /W:2

Open in new window

Avatar of ms-pro
ms-pro
Flag of Denmark image

hmm. try to give the user full control at the share permission and NTFS permission
It sounds very much like a permissions problem
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of agorts

ASKER

I try it... but with the same results... The problem persists...
Avatar of oBdA
oBdA

What exactly did you try? /copy:datsu or adding the user to the local admin group on the target server?
Nobody here can look over your shoulder while you're trying things, so you have to be specific about what you've tried and what the exact outcomes were.
Avatar of agorts

ASKER

I try all of them...

I also try the /copy:dats and finally it worked!
Avatar of agorts

ASKER

Actually the /copy:datsu  is equal to /copyall, thats why I try the "dats"...

Thank you anyway!
Not quite, /copyall is equal to /copy:datsou. Should have thought of that earlier, sorry, changing auditing (the "u" option) of course requires special permissions as well.
Avatar of agorts

ASKER

No problem!