LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-08-2011, 05:17 AM   #1
me_spearhead
Member
 
Registered: Feb 2007
Distribution: SUSE Linux, & Redhat Variants
Posts: 59

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, 05:42 AM   #2
prodev05
Member
 
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, 10:41 PM   #3
me_spearhead
Member
 
Registered: Feb 2007
Distribution: SUSE Linux, & Redhat Variants
Posts: 59

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


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
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 12:04 AM
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 06:51 AM
Diffrence /etc/init.d and /etc/init.d/rc?.d scripts veeruhs Linux - Server 3 07-29-2010 04:42 AM
[SOLVED] init scripts, variables in INIT INFO section catkin Linux - General 1 08-18-2009 02:02 PM
what is the scripts in /etc/init.d for? blackzone Linux - General 7 09-06-2006 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:02 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