[Samba] need special chars in file & dir names (\)

dast dast at phpaction.de
Mon Nov 13 13:06:04 GMT 2006


hello,

i have some trouble to configure my samba file-server.

i must configure a backup server, for an other main-file-server.

The "main-file-server" is a blackbox-server, without any terminal access.

the main-server is used by some printer-servers querry.
the filenames in the main-server shows like:

    "smb://123.123.123.123/sharename/a file\name.txt"

in words: i need all special chars for useing as filename.

in bash i have no problems creating a file with a backslash:

#> touch "a\\test.txt"
#> ls
a\test.txt
#>

but i can not see the file from remote with a MAC.
(Windows has problems to handle this files, but the MACos can read and 
write this special files on the main-server, but not on the samba 
backup-server)

How can i make it workable, with filenames with special chars like "\" 
(backslash) in the name ?

PS: Sorry for my bad english.


best regards,
Daniel S.


some config-data:

 >> the smb.conf
[global]
    dos charset = CP850
    unix charset = UTF-8
    display charset = LOCALE
    workgroup = mshome
    server string = FileServer
    log file = /var/log/samba/%m.log
    max log size = 50
    security = user
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    dns proxy = no
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    template shell = /bin/false
    winbind use default domain = no
    preexec = /pos/pos_user_allowed.sh %u %I
    preexec close = Yes

; shares:

[Eingang]
    comment = work incomming
    path = /var/raid5/Eingang
    admin users = fileadmin
    writeable = yes
    create mask = 0775
    directory mask = 0775




 >> the used mountpoint
#mount
/dev/sda1 on /var/raid5 type ext3 (rw,iocharset=utf8)


 >> the used samba version
root at fileserver:/home/admin# smbd -V
Version 3.0.22

 
 >> the used kernel
root at fileserver:/home/admin# uname -a
Linux fileserver 2.6.15-26-server #1 SMP Fri Jul 7 20:32:10 UTC 2006 
i686 GNU/Linux
 
 
 >> my locale
LANG=de_DE.UTF-8
LANGUAGE=de_DE:de:en_GB:en
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=





More information about the samba mailing list