[SAMBA] Change special character of filename
paul.weaver at bbc.co.uk
Wed Apr 2 22:52:52 GMT 2008
I've been half-heartadly looking for something similar for the last year
or so, I wanted to prevent any files that didn't match a specific
regular expression from being written -- e.g. "allow-file-write:
.*\.jpg" to only allow jpegs.
I didn't find anything.
It's possible if you write a VFS, however I'm not sure if anyone's
released a generic one. Recently I wrote a simple VFS module which only
permits files matching a given pattern (".jpg$") to be written to a
share, but I haven't tidyed it enough to release -- it was more of a
"learning vfs" module.
A problem you may run into if you manage to do it, if you transparently
rename the file on create, clients may assume the write works, and
assume the file they just created is still there on the old name. That
might be a problem, it might not, it depends on how your application
handles it. If you disallow a write operation, the client should handle
> -----Original Message-----
> samba-technical-bounces+paul.weaver=bbc.co.uk at lists.samba.org
> [mailto:samba-technical-bounces+paul.weaver=bbc.co.uk at lists.sa
> mba.org] On Behalf Of Alain Siani
> Sent: 01 April 2008 11:26
> To: samba-technical at lists.samba.org
> Subject: [SAMBA] Change special character of filename
> I would like to remove on the fly special characters, when a
> user create
> a file "toto#1.jpg" i would like
> samba change the name to "toto1.jpg" or refuse the "#" character.
> is it possible ?
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
More information about the samba-technical