Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 02-08-2011, 06:17 AM   #1
Registered: Feb 2007
Distribution: SUSE Linux, & Redhat Variants
Posts: 55

Rep: Reputation: 15
How to monitor init scripts in /etc/init.d/ in rhel 5

Hello Friends,

How can we track if someone executes any script in /etc/init.d/ directory with start / stop / restart option on a server ?
The requirement is to track the event and report it to some file like /var/log/messages or any other as applicable.

I am trying the same via auditctl but, have still not got it right.

Any help would be appreciated.
Old 02-08-2011, 06:42 AM   #2
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
First of all; a user can't stop|start|restart a service with out root privilege.

Enable sudo access and log privilege right to specific script. This will solve your problem.
Old 02-09-2011, 11:41 PM   #3
Registered: Feb 2007
Distribution: SUSE Linux, & Redhat Variants
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks for the reply. I have finally got it via auditctl


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
Can't find /etc/init.d/smb or /etc/rc.d/init.d/smb on RHEL 5.3 jul_the Red Hat 5 08-28-2010 01:04 AM
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 07:51 AM
Diffrence /etc/init.d and /etc/init.d/rc?.d scripts veeruhs Linux - Server 3 07-29-2010 05:42 AM
[SOLVED] init scripts, variables in INIT INFO section catkin Linux - General 1 08-18-2009 03:02 PM
what is the scripts in /etc/init.d for? blackzone Linux - General 7 09-07-2006 12:10 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:43 AM.

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