Re: Directory Auditing?
From: hacknisty (claudej@nerim.net)Date: 06/19/02
- Next message: Rob MacGregor: "Re: fetchmail"
- Previous message: Ian Jones: "Re: Apache security update"
- In reply to: Scott: "Directory Auditing?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "hacknisty" <claudej@nerim.net> Date: Wed, 19 Jun 2002 07:18:48 +0200
you can try create a script that use command like :
ls -l | awk '{ print $6,$7,$8 }'
$6,$7 and $8 are respectivly 6,7,8th fields of ls -l output. You can add $9
to have file name and redirect this command output to a file like that :
ls -l | awk '{ print $9,$7,$6,$8 } > /var/log/diraudit.log
it's not fantastic but you can base yourself on this to make a better script
! ;)
Claude
"Scott" <scott-mcse@cox.net> a écrit dans le message news:
ZhLP8.53485$hF5.1958700@news2.east.cox.net...
> Hi Group!
> Can anyone tell me how I can *log* everytime a directory or mount point is
> accessed.
> I know of course that the ls -l will tell me when files were last modified
> and accessed, but I want to log this info.
> I did some looking around, and I could only find a dead link from within
> Freshmeat:
> http://freshmeat.net/projects/auditdaemon/?topic_id=43%2C148%2C862
>
> Scott
>
>
>
>
- Next message: Rob MacGregor: "Re: fetchmail"
- Previous message: Ian Jones: "Re: Apache security update"
- In reply to: Scott: "Directory Auditing?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|