[Samba] How to disallow to create files with bad charracters

Jeremy Allison jra at samba.org
Thu Oct 15 09:35:23 MDT 2009


On Thu, Oct 15, 2009 at 09:03:03AM +0200, Dusan Zatkovsky wrote:
> On Wednesday 14 of October 2009 14:21:52 morgan at tuxedo.darktech.org wrote:
> > 	I don't think so (at least not on Samba 3.x), but you can always
> > access files with "bad" names via their mangled (short) name if you
> > have filename mangling turned on.
> 
> This is not what I am looking for. I need to have "simple and clean" ascii 
> filenames without special charracters and spaces on linux filesystem. I don't 
> care filenames on windows behind samba share, there should remain 'native'.

This is only possible if you write a VFS translation module that
converts any incoming pathnames to be "clean" as you define it.
If you then run that on a new (ie. no files or directories existing) share then
that should do what you need.

Jeremy.


More information about the samba mailing list