LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-27-2006, 12:18 PM   #1
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Question pacct file in wrong location


Got a question about the pacct file, I have a Solaris 9 server that is storing it in /pacct instead of /var/adm/pacct how do I get it to store it in the correct location?

I've looked at various files in /usr/lib/acct and runacct, ckpacct, monacct all seem to point to /var/adm.

Thanks
Blink.
 
Old 12-27-2006, 02:11 PM   #2
mdhmi
Member
 
Registered: Dec 2005
Location: Detroit, Michigan
Distribution: Ubuntu
Posts: 86

Rep: Reputation: 15
Have you skimmed through /etc ?
 
Old 12-27-2006, 03:12 PM   #3
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by mdhmi
Have you skimmed through /etc ?
Yep, looked though it.

Starting to think pacct is a bunch of voodoo and black magic. I might have figured it out...
Here's what I did:
stopped accounting /etc/rc3.d/Sxxacct stop
ran the following command:
/usr/lib/acct/accton /var/adm/pacct
stopped accounting again with the rc3.d script
restarted accounting with the rc3.d script
now my /pacct isn't growing but the /var/adm/pacct is.

I didn't even have to rub chicken bones on the server.
 
  


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
how to replace a certain location in a file with a certain value johnson_steve Linux - Software 1 06-22-2005 02:29 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
location of the file on the disk. nice_indian Programming 3 11-08-2004 03:11 PM
LFS: gcc from wrong location??? 7.e.Q Linux From Scratch 0 07-08-2004 02:55 AM
perl script to dump /var/account/pacct dazdaz Programming 3 11-23-2003 03:57 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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