Smbclient and W2K files with accents
Pierre-Yves BONNETAIN
bonnetain at acm.org
Tue Oct 2 04:11:02 GMT 2001
Hello you all,
Well... I'm at a loss with smbclient so I'm asking what may be a quite
common question, but I did not find anything relevant in the documentation.
I'm using Samba 2.2.1a on a Linux box, to access shares on W2000 systems and
for those W2K systems to access some directories on the Samba server. And I run
into troubles with (french) accented file or dir names.
When working from W2K to the Samba server, I have no problems. If I have a
file named Eléphant.txt on my Samba server, I can see/read/modify it from the
W2K system. Fine.
But when using smbclient to access some W2K shares, I do properly _see_
accented filenames (\\w2000\Documents\Pierre-Yves\Modèles, for example) but
whenever I try to go into such a directory or to get a file, I get a Bad Path
or a Bad File error. This only happens when there is an accent in the file or
dir name. Non-accented stuff is properly dealed with :
-------------------
smb: \> cd Pierre-Yves
smb: \Pierre-Yves\> ls
. DA 0 Mon Jul 2 11:41:34 2001
.. DA 0 Mon Jul 2 11:41:34 2001
Bureau DA 0 Tue Oct 2 10:48:10 2001
Menu Démarrer DA 0 Mon Aug 20 00:01:01 2001
Mes documents DA 0 Mon Oct 1 09:19:33 2001
Modèles DAH 0 Sat Jun 23 15:57:23 2001
58627 blocks of size 524288. 52259 blocks available
smb: \Pierre-Yves\> cd Modèles
cd \Pierre-Yves\Modèles\: ERRDOS - ERRbadpath (Directory invalid.)
smb: \Pierre-Yves\> cd Bureau
smb: \Pierre-Yves\Bureau\> ls
. DA 0 Tue Oct 2 10:48:10 2001
.. DA 0 Tue Oct 2 10:48:10 2001
Eléphant.txt A 11 Tue Oct 2 10:48:17 2001
rp8-setup.exe R 5136384 Sun Aug 19 23:57:50 2001
58627 blocks of size 524288. 52259 blocks available
smb: \Pierre-Yves\Bureau\> get Eléphant.txt
ERRDOS - ERRbadfile (File not found.) opening remote file \Pierre-Yves\Bureau\Eléphant.txt
smb: \Pierre-Yves\> cd "../Mes documents"
smb: \Pierre-Yves\Mes documents\> ls
. DA 0 Mon Oct 1 09:19:33 2001
.. DA 0 Mon Oct 1 09:19:33 2001
Gestion D 0 Mon Oct 1 09:21:53 2001
Perso DA 0 Thu Sep 13 13:12:53 2001
58627 blocks of size 524288. 52259 blocks available
smb: \Pierre-Yves\Mes documents\>
-------------------
Obviously, I must be doing stg wrong. First time in my life I see stg
working on Windows and not on Linux !
Here is my smb.conf file :
-------------------
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2001/10/02 12:04:35
# Global parameters
[global]
workgroup = B-A
server string = Samba 2.2.1a
encrypt passwords = Yes
username map = /usr/local/samba/private/usermap.txt
log file = /usr/local/samba/var/log.%m
max log size = 500
client code page = 850
character set = ISO8859-1
dns proxy = No
hosts allow = 192.168.1.
[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No
-------------------
Any hints will be appreciated !
Tia,
--
-+-+ Pierre-Yves BONNETAIN
More information about the samba
mailing list