[Samba] Samba as a client to Windows2000 + special characters on
filenames
breno.moiana at partekforest.com
breno.moiana at partekforest.com
Tue Jan 27 20:27:07 GMT 2004
Greetings!
I have been troubleshooting this for over a week, and what follows is a rather
long, detailed description. The short description to the problem I have been
dealing with is: I can't access files on a windows2000 server from a Linux
client when their filenames have some specific special characters such as "ã" I
can list them, but not copy.
The setup:
server: Windows 2000 (EN) with Service Pack 3
client: Debian Sarge (testing) with Samba 3.0 and kernel 2.4.22
To mount the filesystem, I am (successfully) using:
[breno at intra:/testing]# mount -t smbfs -o
username=user,password=pass,ro,codepage=cp860 //servername/sharename
/testing/smbmnt/
The read-only is so that I don't want to tinker in writing until I can at least
read my files correctly.
To map the problem, I have set up on my Windows server a directory with files
meant to check out all the troubled characters:
--------------cut here---
F:\teste>dir
O volume na unidade F é Servidor
O número de série do volume é A4EE-7579
Pasta de F:\teste
27/01/2004 14:44 <DIR> .
27/01/2004 14:44 <DIR> ..
19/08/2003 13:18 101.481 A tilde_Ã_.test
19/08/2003 13:18 101.481 aacute_á_.test
19/08/2003 13:18 101.481 acirc_â_.test
19/08/2003 13:18 101.481 agrave_à_.test
19/08/2003 13:18 101.481 atilde_ã_.test
19/08/2003 13:18 101.481 C cedil_Ç_.test
19/08/2003 13:18 101.481 ccedil_ç_.test
19/08/2003 13:18 101.481 ecirc_ê_.test
19/08/2003 13:18 101.481 iacute_í_.test
19/08/2003 13:18 101.481 oacute_ó_.test
19/08/2003 13:18 101.481 ocirc_ô_.test
19/08/2003 13:18 101.481 uacute_ú_.test
19/08/2003 13:18 101.481 uuml_ü_.test
13 arquivo(s) 1.319.253 bytes
2 pasta(s) 2.514.542.592 bytes disponíveis
F:\teste>
--------------cut here---
Now I try to copy them all to a directory. With codepage=cp437(US/Canada),
cp850(Europe) or cp860(Portuguese)I get errors on std_err:
smb_open: PATH/A tilde_A_.test open failed, result=-2
smb_open: PATH/A tilde_A_.test open failed, result=-2
smb_readpage_sync: PATH/A tilde_A_.test open failed, result=-2
which repeats for the atilde_a_.test file. Then, ls -l on the target directory
returns:
--------------cut here---
[breno at intra:/testing]# ls -l cp860/
total 1100
-rwxr--r-- 1 breno breno 0 Jan 27 15:29 A tilde_A_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 C cedil_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 aacute_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 acirc_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 agrave_?_.test
-rwxr--r-- 1 breno breno 0 Jan 27 15:29 atilde_a_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 ccedil_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 ecirc_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 iacute_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 oacute_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 ocirc_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 uacute_?_.test
-rwxr--r-- 1 breno breno 101481 Jan 27 15:29 uuml_?_.test
[breno at intra:/testing]#
--------------cut here---
Notice that only the ã and à files have a zero filesize. These are the ones who
didnt work. The others were successfully copied, though the console is not able
to display them. This is a different problem, to be addressed separately (but
any tips are welcome as well).
When I tried utf8 and iso8859-1 codepages, the only files that would be copied
were the acute-related ones (á, é, í, ó, ú).
I have compiled a 2.4.22 kernel with the mentioned codepages included in the
Filesystems section, and it is working fine.
Has anybody managed to make this work correctly?
Thanks for any help :)
Regards,
Breno Moiana
-------------------------------------------------------------
"Science is organized knowledge. Wisdom is organized life."
"Ciência é conhecimento organizado. Sabedoria é vida organizada."
-- Immanuel Kant
More information about the samba
mailing list