Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2004 15:42:51 +0200
From:      Sascha Klauder <sklauder@trimind.de>
To:        Andrew Nelson <andrew__nelson@hotmail.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: monitoring shell commands (recording username/cmd/time)
Message-ID:  <20040618134251.GA56959@trimind.de>
In-Reply-To: <BAY18-F66hIqU7MOKZv0001212c@hotmail.com>
References:  <BAY18-F66hIqU7MOKZv0001212c@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 18, 2004 at 01:22:50PM +1000, Andrew Nelson wrote:
> I'm wondering if there is a version of bash or tcsh that logs all commands
> to a file with username and time?   I've tried Sudo, but it's not all that
> practical for my purpose (I'm not that interested in restricting access, 

Leaving the security considerations aside (a user can just
compile his own shell, use another etc), you could use the
bash-bofh-patch (http://www.ccitt5.net/archives/)

>From the README:
 »What this patch does is basically to log commands run from bash
 to syslog under the USER facility...«

I've used it myself some time ago on a shell server and it works
pretty well.

Cheers,
-sascha



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040618134251.GA56959>