TechRepublic: Mastering system accounting in Linux

Written By
Web Webster
Web Webster
Nov 23, 2000

“One of the first skills a Linux administrator should
develop is the ability to monitor user activity on a Linux system.
This skill often provides a first line of defense in discovering
unauthorized activity. This Daily Drill Down discusses the
monitoring tools that are available as part of the Linux operating
system and demonstrates how to employ system accounting procedures
to enhance system security.”

“Connection accounting is the process of tracking current user
logins and logouts. … Several programs are involved in providing
information related to connection accounting. This eliminates the
need to run a specific daemon to initiate connection
accounting.”

“Process accounting encompasses all the procedures and commands
used to monitor process activity. The data for process accounting
is logged in the /var/log/pacct file. This file should be owned by
root and should have its file permissions set at 600 (rw——-).
The /var/log/pacct file must exist before process accounting can be
activated. … The /var/log/pacct file may be replaced with any
file you would like to use for process accounting. Just remember to
create the file and to set the permissions correctly. The command
to activate process accounting must be run at each reboot.”

“The files /var/log/utmp, /var/log/wtmp, and /var/log/pacct
function as dynamic database files. Two of these files,
/var/log/wtmp and /var/log/pacct, grow by having entries appended
to them. On a busy network, these files can become quite large.
Linux provides a program called logrotate that allows
administrators to manage these files.”


Complete Story
[ Free registration required ]

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.