[Samba] Character translation problem

Tom Diehl tdiehl at rogueind.com
Mon Aug 29 20:36:00 GMT 2005


Hi all,

I have a file that samba does not know how to access. The file is located on
a w2k server. The samba box is a member of the w2k domain (ADS). When I try
to access the file via nfs I get "no such file or directory". In the logs
I get the following error:

ug 29 03:38:04 bfs kernel: smb_open: District of Columbia/lexis_com(SM)  Get a Document - by Citation - D_C_ Code ^U 36-1401.htm open failed, result=-2
Aug 29 03:38:04 bfs kernel: smb_open: District of Columbia/lexis_com(SM)  Get a Document - by Citation - D_C_ Code ^U 36-1401.htm open failed, result=-2
Aug 29 03:38:04 bfs kernel: smb_readpage_sync: District of Columbia/lexis_com(SM)  Get a Document - by Citation - D_C_ Code ^U 36-1401.htm open failed, error=-2
Aug 29 03:38:04 bfs kernel: smb_proc_readdir_long: name=\My Documents\Products\Critical Illness\PL&A\True Group\State Filings\District of Columbia\lexis_com(SM)  Get a Document - by Citation - D_C_ Code ^U 36-1401_files\*, result=-2, rcls=1, err=123
Aug 29 03:58:27 bfs mount.smbfs[31390]: [2005/08/29 03:58:27, 0] client/smbmount.c:send_fs_socket(406)
Aug 29 03:58:27 bfs mount.smbfs[31390]:   mount.smbfs: entering daemon mode for service \\mcrserver\d$, pid=31390
Aug 29 04:02:09 bfs nmbd[18475]: [2005/08/29 04:02:09, 0] nmbd/nmbd.c:process(542)

I suspect that the problem is with the ^U in the filename. When I look at this
file from the windows machine I see some kind of weird symbol that kind of looks
like 2 "S" characters one on top of the other.

If I do an ls using tab completion I get an error as shown below.
(bfs pts6) # ll lexis_com\(SM\)\ \ Get\ a\ Document\ -\ by\ Citation\ -\ D_C_\ Code\ ^U\ 36-1401.htm
  36-1401.htm: No such file or directory

If I do a simple I get the display below.
(bfs pts6) # ls -l
total 470
...
-rwxr-xr-x    1 root     root        12206 Dec 29  1999 lexis_com(SM)  Get a Document - by Citation - D_C_ Code ? 36-1401.htm
...
(bfs pts6) #

In the smb.conf I have "unix charset = LOCALE" per the samba howto.

The LANG environ on the machine is as follows:
(bfs pts6) # echo $LANG
en_US.UTF-8
(bfs pts6) #

The samba server is a RHEL3 box with samba-3.0.9-1.3E.3 rpms installed.

Does anyone know how to configure samba so that it can recgonize the same
characters that windows can??

Regards,

Tom


More information about the samba mailing list