Alex Satrapa
2004-Jul-06 02:54 UTC
[Samba] Possible Bug: Can't copy from Mac OS X to Samba Version 3.0.2a-Debian?
So I'm trying to copy a file called "Stuffit Standard 8.0.2 X Installer.dmg" from my Panther workstation to a Debian i386 server, running Samba 3.0.2a as packaged under Debian. There's plenty of disk space left, I'm looking at a folder full of files with long names, some containing spaces. When I drag the file from my workstation's local folder to the folder on the Samba server, I get this error message:> You cannot copy some of these items to the destination because their > names are too long or contain invalid characters for the destination. > Do you want to skip copying these items and continue copying the other > items?In the Samba log I get this:> [2004/07/06 12:37:56, 3] lib/util.c:unix_clean_name(580) > unix_clean_name [/Macintosh Software/Stuffit Standard 8.0.2 X > Installer.dmg] > [2004/07/06 12:37:56, 3] lib/util.c:unix_clean_name(580) > unix_clean_name [Macintosh Software/Stuffit Standard 8.0.2 X > Installer.dmg] > [2004/07/06 12:37:56, 3] lib/util.c:unix_clean_name(580) > unix_clean_name [Macintosh Software] > [2004/07/06 12:37:56, 3] smbd/dir.c:dptr_create(491) > creating new dirptr 256 for path Macintosh Software, expect_close = 1 > [2004/07/06 12:37:56, 4] smbd/trans2.c:call_trans2findfirst(1023) > dptr_num is 256, wcard = Stuffit Standard 8.0.2 X Installer.dmg, > attr = 22 > [2004/07/06 12:37:56, 4] smbd/dir.c:dptr_close_internal(224) > closing dptr key 256 > [2004/07/06 12:37:56, 3] smbd/error.c:error_packet(118) > error packet at smbd/trans2.c(1085) cmd=50 (SMBtrans2) > NT_STATUS_NO_SUCH_FILEWhich seems odd, because of course there's going to be no such file, since I'm only just trying to create it. Remembering that I was messing about with the Samba/LDAP setup all last night, I decide to check if I've taken myself out of the group that has write permission to the folder... right click in the window, select "New Folder" - bingo, I get a dialog saying I don't have permission to do that. The next step is obviously to put myself into the group again, log off (permissions appear to have been cached by Linux, Samba, Mac OS X or Finder along the way somewhere) and try again. Voil? - I can copy the file now. Which leave me to wonder, is the odd message I'm getting from Samba really meaningful? I would have expected an NT_STATUS_ACCESS_DENIED or similar - something explicitly stating that the operation was administratively prohibited. The NT_STATUS_NO_SUCH_FILE error doesn't make sense to me. Is this due to Samba being confused, my installation being whacky, or does it look like the Mac is trying to create the file in an odd manner? I've solved the immediate problem, no thanks to the odd error messages. I'd really like to know whether this weird behaviour can be altered, and who is the most meaningful candidate for a bug report (me, Samba Team or Apple Computer). Regards Alex Satrapa -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 220 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20040706/18a1af1e/PGP.bin