Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to enable lastcomm?

Status
Not open for further replies.

williamyee

Technical User
Feb 6, 2002
5
0
0
CH
Hi,

when I tried to run "lastcomm" command, I get error "/var/adm/pacct: No such file or directory".

anyone knows how to activate the usage of lastcomm?
Or is there any other way to show all the commands used by every users on the server?

thanks,
Wil
 
you shud start system accounting for accessing the data in /var/adm/pacct.

lastcomm gives account of files in /var/adm/pacct directory.

to start accounting u shud run /usr/lib/acct/turnacct file.
tostart accounting during startup use /usr/lib/acct/startup file.

for more details do

man startup
man lastcomm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top