Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2004 07:59:18 -0600
From:      Dan Vande More <dvm@firstlink.com>
To:        Andrew Nelson <andrew__nelson@hotmail.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: monitoring shell commands (recording username/cmd/time)
Message-ID:  <1087567158.1401.4.camel@dvmgentoo>
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 Thu, 2004-06-17 at 21:22, 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, 
> just
> seeing who has done what at which time...)   Can anyone help?

Yeah, there is a BOFH patch for bash, you can get from here:

http://www.ccitt5.net/archives/

It produces syslog messages like this:

Jun 17 23:50:02 server bash[12725]: [user1] cd 
Jun 17 23:50:02 server bash[12725]: [user1] ll
Jun 17 23:50:08 server bash[12725]: [user1] vi foo.txt
Jun 17 23:50:58 server bash[11642]: [user1] vi bar.txt


HTH!

-Dan




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