Re: AFP server with OpenBSD for Mac OS X file sharing

From: Niels Veltman (n.c.veltman_at_removethis-home.nl)
Date: 09/19/03


Date: Fri, 19 Sep 2003 16:51:14 +0200

synuw wrote:
> Niels Veltman wrote:
>
>
>>Using samba is a really easy, fool-proof solution and works like a charm
>>with a OpenBSD samba server and a OSX-client. Smb support is built in on
>>OSX. Alternative is using WebDav to emulate iDisk, so that you can use
>>'Backup' as well. For this to set up turn to this page:
>>http://www.drijf.net/dototto/index.html
>
>
> Thanks for your comment but we already tryed Samba and the problem is that
> Samba doesn't let you write files or directory names with special characters
> which are allowed on Mac Platform but not on Windows, these are for example:
> \ / : * ? < > |
>
> So Samba is not a solution for us as we have specific Mac OS X applications
> which need these special characters.
>
> Regards
>
>

Or read manuals, such as this one and use Samba:
http://www.samba.org/samba/docs/man/smb.conf.5.html#VALIDCHARS

Niels

PS: from the give site the part you want:

----
valid chars (G)
     The option allows you to specify additional characters that should 
be considered valid by the server in filenames. This is particularly 
useful for national character sets, such as adding u-umlaut or a-ring.
     The option takes a list of characters in either integer or 
character form with spaces between them. If you give two characters with 
a colon between them then it will be taken as an lowercase:uppercase pair.
     If you have an editor capable of entering the characters into the 
config file then it is probably easiest to use this method. Otherwise 
you can specify the characters in octal, decimal or hexadecimal form 
using the usual C notation.
     For example to add the single character 'Z' to the charset (which 
is a pointless thing to do as it's already there) you could do one of 
the following
		valid chars = Z
		valid chars = z:Z
		valid chars = 0132:0172
		
     The last two examples above actually add two characters, and alter 
the uppercase and lowercase mappings appropriately.
     Note that you MUST specify this parameter after the client code 
page parameter if you have both set. If client code page is set after 
the valid chars parameter the valid chars settings will be overwritten.
     See also the client code page parameter.
     Default: Samba defaults to using a reasonable set of valid 
characters for English systems
     Example: valid chars = 0345:0305 0366:0326 0344:0304
     The above example allows filenames to have the Swedish characters 
in them.
     NOTE: It is actually quite difficult to correctly produce a valid 
chars line for a particular system. To automate the process 
tino@augsburg.net has written a package called validchars which will 
automatically produce a complete valid chars line for a given client 
system. Look in the examples/validchars/ subdirectory of your Samba 
source code distribution for this package.
----


Relevant Pages

  • Re: SAMBA configuration - Machine name
    ... I've got an MSDOS machine with MSCLIENT over TCP/IP running ... server, even if you had one set up. ... If you manually poke holes in the firewall after the fact, after Samba ... name to 8 characters, but it shouldn't be. ...
    (Fedora)
  • [SLE] Arrgggg the filenames....
    ... The part that sucks is that users of the network that ... I have created with Samba for 3 win9X pc's are saving ... in all sorts of weird characters rather than the greek ...
    (SuSE)
  • Re: AFP server with OpenBSD for Mac OS X file sharing
    ... >Samba doesn't let you write files or directory names with special characters ... directory separator used by Unix. ... the old MacOS way of separating directories, ...
    (comp.unix.bsd.openbsd.misc)
  • Re: charset of ext3 drives
    ... Using UTF-8 characters ist not really a filesystem problem, ... and choose a unicode locale that best matches your location. ... If you're using samba shares with "special" characters (anything not low ... the Microsoft truetype fonts are rather good at this. ...
    (Debian-User)