• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Groß/Kleinschrift

Kurt M

Hacker
Ich habe einen Suse 9.3 Server mit Reiser formatierten Platten. Dort läuft Samba und stellt die Verzeichnisse einem Win2000 PC über das Netzwerk zur Verfügung.

Wenn jetzt ein Windowsprogramm auf Dateien zugreift, kommt es öfters zu Konflikten, da sich Windows nicht um Groß/Klein kümmert.
Beispiel:
Auf dem Server liegt die Datei: Text.TXT
Wenn ein Windowsprogramm auf die Datei text.txt zugreifen will, so heißt es "Datei nicht gefunden". Wenn ich die Datei unter Linux auf text.txt umbenenne, so wird sie gefunden.

Da die Groß/Kleinbuchstaben Windows ja egal sind, kann es nur an Samba liegen dass diese Datei nicht gefunden wird. Gibt es da irgendeine Einstellung wo man das in den Griff bekommen kann, sodaß Samba Dateien ohne Rücksicht auf Groß/Klein findet ?

Danke
Kurt
 

baumpaul

Hacker
Swat sagt dazu: (wenn ich die Frage richtig verstanden habe)

NAME MANGLING
Samba supports “name mangling” so that DOS and Windows clients can use files that don't conform to the 8.3 format. It can also be set to adjust the case of 8.3 format filenames.
There are several options that control the way mangling is performed, and they are grouped here rather than listed separately. For the defaults look at the output of the testparm program.
All of these options can be set separately for each service (or globally, of course).
The options are:
case sensitive = yes/no/auto
controls whether filenames are case sensitive. If they aren't, Samba must do a filename search and match on passed names. The default setting of auto allows clients that support case sensitive filenames (Linux CIFSVFS and smbclient 3.0.5 and above currently) to tell the Samba server on a per-packet basis that they wish to access the file system in a case-sensitive manner (to support UNIX case sensitive semantics). No Windows or DOS system supports case-sensitive filename so setting this option to auto is that same as setting it to no for them. Default auto.
default case = upper/lower
controls what the default case is for new filenames. Default lower.
preserve case = yes/no
controls whether new files are created with the case that the client passes, or if they are forced to be the “default” case. Default yes.
short preserve case = yes/no
controls if new files which conform to 8.3 syntax, that is all in upper case and of suitable length, are created upper case, or if they are forced to be the “default” case. This option can be used with “preserve case = yes” to permit long filenames to retain their case, while short names are lowercased. Default yes.
By default, Samba 3.0 has the same semantics as a Windows NT server, in that it is case insensitive but case preserving.
 
Oben