[Samba] Execute script on file write

Gautier, B (Bob) Bob.Gautier at rabobank.com
Tue Mar 14 09:55:00 GMT 2006


> -----Original Message-----
> From: samba-bounces+bob.gautier=rabobank.com at lists.samba.org 
> [mailto:samba-bounces+bob.gautier=rabobank.com at lists.samba.org
] On Behalf Of Peter Fortuin
> Sent: 14 March 2006 09:27
> To: samba at lists.samba.org
> Subject: [Samba] Execute script on file write
> 
> Hello,
> 
> I'm working on a quota system here at school. I want to 
> execute a script everytime a user writes on the samba 
> fileserver. This script checks some quota stuff.
> 
> My question is, is it possible that a script is executed 
> everytime a user writes a file to the samba server and if 
> it's possible, how?

As someone has already pointed out, the standard quota system might fit
your needs, and if not, you are probably looking at a high overhead on
your server -- especially if the logic is a 'script' (e.g. bash?).

If you really want to do it, my suggestion is that you consider writing
yourself a VFS plugin -- maybe the audit plugin would be a good starting
point.

Bob G

> 
> Greetings,
> 
> Peter Fortuin
> 
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now! 
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> 
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
> 
_____________________________________________________________

This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. If this email contains an offer, that should be considered as an invitation to treat.
_____________________________________________________________


More information about the samba mailing list