From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: File watch on group Date: Wed, 18 Jul 2007 19:30:48 -0400 Message-ID: <200707181930.48687.sgrubb@redhat.com> References: <95470FF653FF324C8171194A81299CE0150785A1@zrc2hxm2.corp.nortel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <95470FF653FF324C8171194A81299CE0150785A1@zrc2hxm2.corp.nortel.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Wednesday 18 July 2007 05:46:40 pm Ameel Kamboh wrote: > I would like to put a watch on a file for rwxa for a > File being accessed by someone who is not in the same group as the file. > > Can this be done using an audit rule? On RHEL5 or 2.6.19 or higher: auditctl -a exit,always -S all -F perm=rwxa -F gid!=root -F path=/etc/localtime -k gid-rule and to see results: ausearch --start today -k gid-rule The only limitation is that you need to know the group beforehand. -Steve