Logging file transfers

Gerald Carter gcarter at valinux.com
Sat Oct 28 15:00:09 GMT 2000

Jarrod Sayers wrote:
> Hi,
> We are currently running a student shares server with 
> Samba and have recently had people storing files in their 
> areas that shouldnt be there.  Our main IT unit has asked 
> for logs of when these files are being accessed.  This is 
> too late now but for next semester, is there a way of 
> logging just the file name, action and user so we can 
> combat this in the future.  Is it something that
> could be simply written?

This should be possible by catching the file open.  I would
recommend making this a service level parameter as you 
will probably take a performance hit due to extra disk IO 
caused by logging.

Cheers, jerry
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com  VA Linux Systems    gcarter at valinux.com
       http://www.samba.org       SAMBA Team           jerry at samba.org

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )

More information about the samba mailing list