Windows 7, xcopy to samba share "Access denied"
Posted on 2009-12-31
I am trying to xcopy a directory tree from a local drive to a Samba share, but I am getting "Access denied. Unable to create directory." I have read & write access to the Samba share in question (as well as the proper underlying Linux permissions).
Let me give more details by example:
xcopy d:\bup\SomeDir SomeDir /e/s/h/k/r/c
Unable to create directory - G:\all\SomeDir
0 File(s) copied
But the top level directory does get created (but nothing else):
Volume in drive G is groups
Volume Serial Number is 800A-0BF7
Directory of G:\all\SomeDir
12/31/2009 06:50 PM <DIR> .
12/31/2009 06:50 PM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 57,038,340,096 bytes free
If I perform the exact same operation from a Windows XP machine, logged in as the same exact user, it works just fine (I've used this command to backup and restore directories for more years than I care to remember).
If I use Explorer to drag the directory to the network share instead, it works fine. But I would much rather use the command line for this (and it should work!). I looked at the switches for xcopy to see if there were any changes in Windows 7 version that could cause this, but did not see any that stood out as a potential culprit.
CentOS 3.9, kernel 2.4.21-47.0.1.ELsmp
Windows 7 64 bit.
Any idea of what would be causing this issue?
Ps. I realize CentOS 3.9 and samba-3.0.9 are old, but I do not have the choice of upgrading this particular server.