LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-26-2008, 05:54 PM   #1
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
CentOS 4.6:Yum information and alerting


I am running CentOS 4.6 on several servers. Auto update is enabled to install the latest software updates from the official repository. I would like to keep a record of yum activity: including and especially new package installs, as several trusted users have the right to install software - they are not meant to, but that's another story.

Reading the manual pages for yum I cannot find a way to list the recently installed packages with a corresponding date stamp. Ideally I would like new installs or updates to trigger an email so I can track activity in real time. Is this possible?
 
Old 01-27-2008, 12:41 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by harry edwards View Post
I would like to keep a record of yum activity: including and especially new package installs
See /var/log/yum.log of whatever /etc/yum.conf says it logs to.


Quote:
Originally Posted by harry edwards View Post
several trusted users have the right to install software - they are not meant to, but that's another story.
Sudo? Wrap root access (sudo?) in Rootsh or Sudosh if you see who came from where and did what when?


Quote:
Originally Posted by harry edwards View Post
Ideally I would like new installs or updates to trigger an email so I can track activity in real time.
Realtime would get you a lot of e-mails if you handle more than a few servers. Why not let say Logwatch report daily or hourly?
 
Old 01-27-2008, 03:42 PM   #3
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Original Poster
Rep: Reputation: 48
Thanks for the advice. The log "/var/log/yum.log" looks like a good place to start, I think I will insert a daily cron job to email myself this file. As for sudo, I've implemented that: unfortunately, due to the nature of the support access to the root password is required, hence my need to monitor what people are doing as root. (Trust no-one :-) )
 
Old 01-27-2008, 09:03 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by harry edwards View Post
As for sudo, I've implemented that: unfortunately, due to the nature of the support access to the root password is required, hence my need to monitor what people are doing as root.
Only one approach to easy your mind: get Rootsh to wrap shell access and log to syslog, watch SELinux audit logs (Auditd off and output goes to syslog) and install Samhain (w/o hiding LKM and configure to log to syslog), then have Syslog log to a remote syslog server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error yum centos 5 crosswing Linux - Distributions 1 04-24-2007 03:34 PM
CENTOS 4.4 and YUM metallica1973 Linux - Software 9 11-14-2006 02:51 PM
Problem with yum in CentOS 4.3 combilli Linux - Software 2 10-31-2006 03:39 AM
trying to install YUM on CentOS MrSako Linux - Newbie 5 07-20-2006 08:36 AM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration