[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Umlaut problems in filenames when going from samba2 to samba3



-----Original Message-----
> Date: Fri,  3 Mar 2006 07:48:58 +0100
> Subject: Umlaut problems in filenames when going from samba2 to samba3
> From: Klaus Ade Johnstad 
> To: user@skolelinux.de

> Feel free to answer in German :-)
> 
> I'm changing a school that previously used a 3 year old Debian server
> running Samba 2.x over to Skolelinux, using Samba 3.0.14, and I have 1
> problem, and 3 questions:
> My problems is that the filenames do not have the German umlauts (öäü)
> or the Norwegian special characthers (øæå). I have about 8000 such
> files, the teachers say that they have square signs, underscores and
> other "strange" stuff instead of umlauts and specially Norwegian
> characters.
> 

Hallo Klaus,

I've running samba on a debian system here at work.
Windows and Linux are using the same files.
Samba is configured:
#       unix charset = UTF-8
#       display charset = UTF-8

debian is configured:
LANG=de_DE.UTF-8@euro
LC_CTYPE="de_DE.UTF-8@euro"
LC_NUMERIC="de_DE.UTF-8@euro"
LC_TIME="de_DE.UTF-8@euro"
LC_COLLATE="de_DE.UTF-8@euro"
LC_MONETARY="de_DE.UTF-8@euro"
LC_MESSAGES="de_DE.UTF-8@euro"
LC_PAPER="de_DE.UTF-8@euro"
LC_NAME="de_DE.UTF-8@euro"
LC_ADDRESS="de_DE.UTF-8@euro"
LC_TELEPHONE="de_DE.UTF-8@euro"
LC_MEASUREMENT="de_DE.UTF-8@euro"
LC_IDENTIFICATION="de_DE.UTF-8@euro"
LC_ALL=

The filesystem which is shared between Linux and windows is ext3 with acl's
on LVM2.
The sambaserver acts as a domain member server of a w2k-domain running in
native mode.

sv-9-hma:/daten/VK-Brennen# ls -al
insgesamt 48
...
-rwxrwx---+  1 root          domänen-benutzer    0 2006-03-03 07:51
ÜÄÖßüäö.txt

The above file was created with a w2k station on the samba share.

> My questions:
> 1. What should I use in smb.conf for the values
> unix charset =
> DOS charset =
> 
> 2. What should actually the LOCALES be?
> 
> 3. I've found a program that supposedly will help me,
> http://j3e.de/linux/convmv/
> I've tried different combinations of
> convmv -f cp850 -t iso8859-1
> convmv -f cp850 -t utf8
> But even if the umlauts are again visible from linux, they look
> strange on windows. Anyone having used this program before?
> 
> 
> 
> Oh, another problem is that they are using this system very heavily 24
> hours a day (lots of vpn connections), so I can't just restart Samba
> whenever I like to...

It should IMHO not be necassary to restart samba.

I'm NOT a specialist of configuring samba.
I think your scenario is similar to the configuration I descrobed above.
But IMHO to convert old files coming in from an old samba version to the
actual version of samba,  only changing settings in the smb.conf  wont work.
I think you have to do both. First configure your system and samba for
propper work with all newly created files and folders and then put the old
data on the shares and convert the files to your needs.

If I will get a little time on weekend, I will try to configure a
sarge-tjener to your needs and tell you what to do.

Greetings, Jürgen




Reply to: