Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21st December 2005, 03:58 PM
Jio Offline
Registered User
 
Join Date: Jun 2005
Posts: 10
Turn process accounting on at start up

As part of my project on Linux security, the root checks commands run by users using lastcomm.

Right now I have to turn process accounting on every time I login using "accton".

Please can anyone suggest a way of turning process account on at start up?

Thanks
Reply With Quote
  #2  
Old 21st December 2005, 10:54 PM
w5set Offline
Registered User
 
Join Date: Feb 2005
Location: ark n saw out in the sticks
Posts: 2,316
well the default process accounting (psacct) can be turned off/on at boot time with
chkconfig --levels 2345 psacct on
chkconfig --levels 2345 psacct off
etc...
or it's under start--system settings--servers--psacct (might want to use the edit all runlevels tab under "runlevels") and then start or restart and then save this settings..
Reply With Quote
  #3  
Old 22nd December 2005, 12:37 PM
Jio Offline
Registered User
 
Join Date: Jun 2005
Posts: 10
Quote:
Originally Posted by w5set
well the default process accounting (psacct) can be turned off/on at boot time with
chkconfig --levels 2345 psacct on
chkconfig --levels 2345 psacct off
etc...
or it's under start--system settings--servers--psacct (might want to use the edit all runlevels tab under "runlevels") and then start or restart and then save this settings..
I've checked and it shows that process accounting is on at boot time but I still can't log users commands.

I'm logging all run commands by user to a file /var/log/pacct but if I shut down and boot again, this file doesn't log anything until I run "accton /var/log/pacct". I don't want to always run accton, so how do I get this to always log users commands?

Thanks
Reply With Quote
  #4  
Old 23rd December 2005, 12:57 AM
w5set Offline
Registered User
 
Join Date: Feb 2005
Location: ark n saw out in the sticks
Posts: 2,316
man ac
man acct
info accounting
man accton
Reply With Quote
Reply

Tags
accounting, process, start, turn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Konqueror - Could not start process Konsolkongen Using Fedora 1 7th November 2008 07:11 PM
start a process and let its parent die bee Using Fedora 8 9th July 2008 03:51 PM
Process Accounting offers2you Using Fedora 3 19th March 2007 10:29 PM
How can I turn on Selective Acks automatically on start up? kentri9 Servers & Networking 1 25th October 2004 02:41 PM


Current GMT-time: 08:01 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat