Home page logo
/

pauldotcom logo PaulDotCom mailing list archives

Sudo Report
From: chris.bentley at sky.com (Chris Bentley)
Date: Wed, 17 Jun 2009 15:52:00 +0100

Hi All,
I need a script to check a weeks work of sudo logs in /var/adm/syslog.dated
via a loop, this directory contains directories by date i.e Day-Month-Time
Example
10-Jun-10:00
11-Jun-10:00
12-Jun-10:00
13-Jun-10:00
14-Jun-10:00
15-Jun-10:00
16-Jun-10:00


At the moment I'm individually going into each directory and checking the
logs and pulling out the following

awk '{print$4,",",$6,","$14}' sudo.log | sort | uniq
If anyone can direct me on who to recursively run through the directories
and pull out the data.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pauldotcom.com/pipermail/pauldotcom/attachments/20090617/ffd1b03d/attachment.htm 


  By Date           By Thread  

Current thread:
  • Sudo Report Chris Bentley (Jun 17)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]