[Ilugc] monitoring the commands of all the users

  • From: raamanp@xxxxxxxxxxx (Raman.P)
  • Date: Mon Sep 3 16:45:38 2007


--- ravi sankar <ravi.mathi@xxxxxxxxx> wrote:

hello all,
          is there anyway to monitor the commands used by the users
in
their account..i thought to use .bash_history however it can be
edited
by the users
          is there anyway to allow the shell to record the
commands,
yet avoiding the users to edit it..

You need process accounting for this. 'acct' is a gnu process
accounting system.
On debian the package details of acct is

Description: The GNU Accounting utilities for process and login
accounting
 The GNU Accounting utilities `ac', `accton', `last', `lastcomm', and
 `sa' add login and process accounting support to Debian GNU/Linux.
 "Login accounting" provides summaries of system resource usage based
 on connect time, and "process accounting" provides summaries based
on
 the commands executed on the system. The 'last' command is provided
by
 the Debian sysvinit package and not included here.

I am sure every other distro should have it


Raman.P


      Try the revolutionary next-gen Yahoo! Mail. Go to 
http://mrd.mail.yahoo.com/dc/landing

Other related posts: