'postexec' on a per-file basis?

Syzop syz at dds.nl
Wed Jan 9 17:50:07 GMT 2002


Hi,

Joost Bijl wrote:

> I'm looking for a way to call a shellscript every time a file is closed. (It
> might sound ridiculous but i really want to :). Samba provides the
> 'postexec' configuration directive, but this is on a session-basis. Anyway,
> am i overlooking something or is there just not a function which provides
> this functionality?

AFAIK such a function doesn't exist.

But you might want to take a look at the VFS (Virtual File System) stuff in samba
in the examples/VFS dir, you can hook into file functions like open/close(/etc/etc).
This is for example used by a project which uses a virus scanner to scan a file upon
access and it's actually designed for things you are describing.

However that's ofcourse a bit more difficult than just writing a shell script and
add a configuration parameter :P.

    Syzop.






More information about the samba mailing list