LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2005, 07:27 AM   #1
GL1800
Member
 
Registered: Jun 2005
Location: Lilburn, Ga
Distribution: FC5
Posts: 175

Rep: Reputation: 30
FC4 turn "auditd" OFF?


In FC4, somwhow, I have auditd running. I found how to disable it, but I really want it to not run anymore. How? Root cannot even kill -9 this process. What starts that thing, anyway?
TIA, Ray
 
Old 07-28-2005, 12:35 AM   #2
zparihar
Member
 
Registered: Sep 2004
Distribution: Fedora, Debian
Posts: 61

Rep: Reputation: 15
As root, run:

chkconfig --level 35 auditd off



Zubin Parihar
 
Old 07-28-2005, 04:59 AM   #3
GL1800
Member
 
Registered: Jun 2005
Location: Lilburn, Ga
Distribution: FC5
Posts: 175

Original Poster
Rep: Reputation: 30
Thank you, and that ran without any comment. Level 35??? What the heck is that?
Further, I don't really want to reboot the box, is there a way to kill the now running auditd?
 
Old 07-29-2005, 07:08 AM   #4
PapaLaz
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
Hi !!

Excuse me if I get anything wrong here - first post. Am a -ish experienced *nix admin, but mostly with Solaris. Just installed fc4 as a home server with 2 fc4 clients... looking good so far

Anyway -

Quote:
chkconfig --level 35 auditd off
chkconfig is used to set the on/off levels of services, with levels being the systems "init" level (or "runlevel"). For example, init level 3 is full networking system, without starting X (I think), whereas init level 5 is usually with X started. Try logging in as root and running an init 6 when you want to reboot your system.

So that chkconfig line above turns off the auditd service at levels 3 or 5. You could also do a "chkconfig auditd off" to turn it off at all runlevels.

Quote:
I don't really want to reboot the box, is there a way to kill the now running auditd?
Another good command is "service". If you try "service auditd status", it will probably tell you it's running, with it's pid (process id - find using "ps -ef | grep pid"). To start a service you can use "service auditd stop"... Try running "service servicename" to find out which parameters can be passed to a service - usually start/stop/restart/status/reload.

Hope this has helped make things a little clearer - and sorry if I'm teaching you to suck eggs :P

Rgds

PapaLaz
 
Old 07-29-2005, 07:14 AM   #5
GL1800
Member
 
Registered: Jun 2005
Location: Lilburn, Ga
Distribution: FC5
Posts: 175

Original Poster
Rep: Reputation: 30
Not at all, thank you very much. I JUST NOW learned that chkconfig can take multiple level arguments, as in 35 to cut it off in those 2 levels. I did not know that. Helpful. I start in level 3, but, should I ever change to the GUI login, things should match, and there be no surprises.

The service command does not know a thing about auditd, though.

A kill -9 wont stop the thing either.
Oh, well, the next boot should get it done.
 
Old 07-29-2005, 09:29 AM   #6
PapaLaz
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
Strange that the "service" command doesn't recognise auditd. Is this with a standard FC4 install ?? Or have you been moving scripts from /etc/init.d ??

My output :

[root@home1 ~]# service auditd
Usage: /etc/init.d/auditd {start|stop|status|restart|condrestart|reload}
[root@home1 ~]#

Anyway, if you're sure the service command isn't picking it up, you could always try "/etc/init.d/auditd stop".

Rgds
PapaLaz
 
Old 07-29-2005, 02:13 PM   #7
GL1800
Member
 
Registered: Jun 2005
Location: Lilburn, Ga
Distribution: FC5
Posts: 175

Original Poster
Rep: Reputation: 30
Thanks again. Yes, it's pretty much standard. I upgraded from FC3 to FC4, but haven't had occasion to mess with the serice scripts, they're all stock.

Here's the rresult of trying to stop the thing:

[root@raymondjones init.d]# ./auditd stop
Stopping auditd: [FAILED]
Error receiving watch list (Unknown error 4294967274)
[root@raymondjones init.d]#

AND it just runs like the Eveready bunny!
 
Old 07-29-2005, 02:54 PM   #8
hlyrad
Member
 
Registered: Jul 2005
Location: Ab Ca
Distribution: Redhat EL Sun Mac OSX FC 3.0 & 4.0
Posts: 44

Rep: Reputation: 15
Have you viewed the man pages for auditd?
http://www.scit.wlv.ac.uk/cgi-bin/mansec?1M+auditd
Also what does
Code:
chkconfig --list | grep auditd
show?
 
Old 07-29-2005, 04:44 PM   #9
GL1800
Member
 
Registered: Jun 2005
Location: Lilburn, Ga
Distribution: FC5
Posts: 175

Original Poster
Rep: Reputation: 30
As shown in my previous post, it reports nothing.
Yup, I did peruse the man page, it's not very helpful in terms of turning the thing on and off.
 
Old 07-29-2005, 05:22 PM   #10
PapaLaz
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
Sry hlyrad, but I didn't quite understand your post. The man page doesn't give any special instructions for hung processes.

GL1800 - TBH it sounds like the processes has hung, or at least in an errored state. A reboot is the only answer if the process won't respond even to a kill -9. The /etc/init.d/auditd stop command will be issued when the system comes down - might take a few seconds to respond as it will fail (as you proved), but at least you'll get a clean system again.

Sorry there's not a better answer.

Rgds
PapaLaz
 
Old 07-29-2005, 05:26 PM   #11
GL1800
Member
 
Registered: Jun 2005
Location: Lilburn, Ga
Distribution: FC5
Posts: 175

Original Poster
Rep: Reputation: 30
Yes, thanks, I kinda figured that. There will be a reboot, one of these days, and it should not restart. Thanks for your help.
 
Old 07-31-2005, 04:22 PM   #12
zparihar
Member
 
Registered: Sep 2004
Distribution: Fedora, Debian
Posts: 61

Rep: Reputation: 15
Service command that doesn't work

Hey GL1800,

Sorry, I didn't further explain thins in my initial response...and thank you PapaLaz for giving your explanations. Everything you said was correct!

I read that your 'service' command didn't work for you...? I didn't fully understand what you meant...

Is the 'service' command in your path?

the path is /sbin/service.

If you wanna add it to your path type in.

export PATH=${PATH}:/sbin/

If you want this to always be in your path... add the previous line to the bottom of your /etc/profile file.

Try: /sbin/service auditd stop

to kill auditd.

If its a hung process...well i'm not sure theres much you can do...

If its a zombie process... just leave it... its not bothering the system and it won't take any memory.

I've got to run real quick. I'll check back on this post in a short while..
Hope I helped a bit...

Zubin Parihar
 
Old 07-31-2005, 04:41 PM   #13
GL1800
Member
 
Registered: Jun 2005
Location: Lilburn, Ga
Distribution: FC5
Posts: 175

Original Poster
Rep: Reputation: 30
Yes, thanks, and yes, service is in my path, it's just that it doesn't believe auditd is it's responsibility, it returns "unknown service" when I try to use it. Nevertheless, going to the rc3.d directory does allow control, so we do have it "stopped" although, it is still making notes I don't want. I will reboot someday soon, and we'll see if it tries to restart itself.
 
  


Reply



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
SuSE 9.2 XDM turn "off" authoritative DNS queries confused-but-committ Linux - Software 1 07-29-2005 04:32 PM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
Why do i get an "out of range" error on my monitor when i turn on suse9.1 linux? bobby1970 Linux - Hardware 4 06-24-2005 04:25 AM
Can I turn my box into a "Hub" with 2 network Cards?? Atmosphere Linux - Networking 2 10-21-2003 10:03 PM
Computer wont really turn off... just "Power Down" SoSlack Linux - General 4 04-30-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:49 PM.

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