I'm running samba 2.0.5a on a Sun Sparc 5 with Solaris 2.6 and trying to use smbclient to copy an entire directory tree to a Windows NT 4.0 box. I'm using the recurse command and can create first level directories but I am unable to create new subdirectories in any of them. For example I created the following directory structure on the Sun: 1 % ls -R .: d1/ d2/ ./d1: f11 f12 ./d2: d21/ d22/ f21 f22 ./d2/d21: d211/ f211 f212 ./d2/d21/d211: f2111 f2112 ./d2/d22: When I copy this to the NT box directories d1 and d2 are created OK but it appears that samba is attempting to create the subdirectories with / instead of \ in the athname. This is the output when I run smbclient to copy the data: smb: \> recurse directory recursion is now on smb: \> prompt prompting is now off smb: \> mput * putting file d1/f11 as \d1\f11 (2.832 kb/s) (average 2.83203 kb/s) putting file d1/f12 as \d1\f12 (3.54 kb/s) (average 3.1467 kb/s) ERRDOS - 123 making remote directory \d2/d21 ERRDOS - 123 making remote directory \d2/d22 putting file d2/f21 as \d2\f21 (3.54 kb/s) (average 3.26773 kb/s) putting file d2/f22 as \d2\f22 (3.54 kb/s) (average 3.3318 kb/s) smb: \> quit I've full access rights to both the destination directory and the share so I don't think it can be a permission problem. Any suggestions? -- Mike Clarke
On Sat, 11 Dec 1999 23:04:36 +1100, hai scritto:>I'm using the recurse command and can create first level directories but >I am unable to create new subdirectories in any of them.I tried the same operation on samba-2.0.6/linux2.2.13/win9x: $ ls -RF .: d1/ d2/ d1: f11 f12 d2: d21/ d22/ f21 f22 d2/d21: d211/ f211 f212 d2/d21/d211: f2111 f2112 d2/d22: ==smb: \> mput * putting file d1/f11 as \d1\f11 (0.976543 kb/s) (average 0.976562 kb/s) putting file d1/f12 as \d1\f12 (1.22067 kb/s) (average 1.08507 kb/s) putting file d2/f21 as \d2\f21 (1.22067 kb/s) (average 1.1268 kb/s) putting file d2/f22 as \d2\f22 (1.22067 kb/s) (average 1.1489 kb/s) putting file d2/d21/d211/f2111 as \d2\d21\d211\f2111 (1.22067 kb/s) (average 1.16257 kb/s) putting file d2/d21/d211/f2112 as \d2\d21\d211\f2112 (0.976543 kb/s) (average 1.1268 kb/s) putting file d2/d21/f211 as \d2\d21\f211 (0.976543 kb/s) (average 1.10257 kb/s) putting file d2/d21/f212 as \d2\d21\f212 (1.22067 kb/s) (average 1.11607 kb/s) smb: \> == The dir structure has been transferred completely on Win9x. I'd try the same on a win9x to see if it's samba/nt related. -- giulioo@pobox.com