Networking :: cannot xcopy to certain dir on samba server



I have a samba server configure as a file server. However when I log in from a Win XP machine and try to write to certain directories on the Samba server machine using the command

xcopy h:\main\*.*  z:\main\*.*  /s /y /d /c /v

when copying files to some of the sub-dir in the tree, it gives the message

Access Denied.

I have run the command

chmod -R 777 /main

on the main directory and ensured that everyone has the rwx permission. yet this happens

However if I try to copy the files directly  to individual sub dir I can.

xcopy h:\main\subdir1\*.* z:\main\subdir1\*.* /v /d /y /c /s

However I cannot do it when I use the /s option from the top level

xcopy h:\root\*.* z:\root\*.* /v /d /y /c/s

basically I use it to backup my server to another server.

I would like to inform that the main server is a win 2k as a PDC and Linux box as a backup server.  The xcopy command is given from a node which is a Win XP


can someone guide me why is this so ?

This is just a guess: remove the 2nd *.*?
Hopefully hats suggestion solved it. If not, you might have better luck with the samba mailing list: https://lists.samba.org/mailman/listinfo/samba

Are you using the latest version? This could be a bug that has already been fixed.

Sorry Fella, I removed the 2nd *.* but no change in results.
as regards the version, well I downloaded the samba from the DSL site.  I cannot update the version , till u guys put in the new version can I ? it is a 'mydsl' thing.

Well the report I get is as follows
Access Denied
Unable to  create  Directory '\subdir'.


Well I have created all the directories myself manually, yet it gives such msgs.

I have subscribed to the list today.  I shall ask my questions to the samba list soon.

Thanks Guys for your time and co operation. I value it

Hm, maybe the problem has to do with creation permissions in the root dir - I seem to remember one that had printers, folders, etc. (that probably could only modify by some admin account over network)
For example, does "xcopy h:\main\*.* z:\main\subdir1\*.* /v /d /y /c /s" work?

Next Page...
original here.