This is a discussion on RE: [SAMBA] Change special character of filename - Samba ; 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: =2E*\.jpg" to only allow jpegs.=20 I didn't find ...
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:
=2E*\.jpg" to only allow jpegs.=20
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-----
> mba.org] On Behalf Of Alain Siani
> Sent: 01 April 2008 11:26
> To: email@example.com
> Subject: [SAMBA] Change special character of filename
> I would like to remove on the fly special characters, when a=20
> user create=20
> 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 persona=
l 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 relian=
ce 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.