From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 05:30:33 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C241416A4B3 for ; Mon, 27 Oct 2003 05:30:33 -0800 (PST) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1197443F93 for ; Mon, 27 Oct 2003 05:30:30 -0800 (PST) (envelope-from webmaster@cordula.ws) Received: from fw.farid-hajji.net (localhost [127.0.0.1]) by fw.farid-hajji.net (8.12.9p2/8.12.9) with ESMTP id h9RDTnVn057778; Mon, 27 Oct 2003 14:29:49 +0100 (CET) (envelope-from webmaster@cordula.ws) Date: Mon, 27 Oct 2003 14:29:49 +0100 (CET) Message-Id: <200310271329.h9RDTnVn057778@fw.farid-hajji.net> From: "Cordula's Web" To: chael@southgate.ph.inter.net X-Mailer: Emacs-21.3.1/FreeBSD-4.9-RC cc: freebsd-questions@freebsd.org Subject: Re: Log every access to a file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: webmaster@cordula.ws List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2003 13:30:33 -0000 > 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/