Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 2003 14:29:49 +0100 (CET)
From:      "Cordula's Web" <webmaster@cordula.ws>
To:        chael@southgate.ph.inter.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Log every access to a file
Message-ID:  <200310271329.h9RDTnVn057778@fw.farid-hajji.net>

next in thread | raw e-mail | index | archive | help
> How do you create/add a system log to monitor every access to a
> specific file (say a database file accessed through samba)? A sample
> line for syslog.conf would be greatly appreciated ?? :-)

Serve this file from an NFS-mounted partition and have nfsd
log all file accesses.

Is there a better way? Perhaps some kind of debugging option
in the VFS or UFS (1 or 2) code? Or a modified union-fs or nullfs
layer, which would intercept all filesystem calls and log them? Hmmm...

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310271329.h9RDTnVn057778>