[Samba] File log

John H Terpstra jht at samba.org
Tue Feb 4 17:40:05 GMT 2003


On Tue, 4 Feb 2003, Frank Nørvig wrote:

> Hello,
>
> Is it possible to log changes in files on a samba-server?
> I need to log which changes users do in shared folders to track if someone
> is deleting, changing or creating files.
>
> Is this possible?

Yes. It is possible. You need to use a recent version of samba (2.2.7a is
the latest) that has been built with the VFS modules enabled.

You then need to install the audit.so module on the share that you want to
audit.

The options that control this are:

	vfs object = /usr/lib/samba/audit.so

>From the README on this module:

        audit
                A simple module to audit file access to the syslog
                facility.  The following operations are logged: share
                connect/disconnect, directory opens/create/remove,
                file open/close/rename/unlink/chmod.

- John T.
-- 
John H Terpstra
Email: jht at samba.org


More information about the samba mailing list