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