monitoring shell commands (recording username/cmd/time)
Sascha Klauder
sklauder at trimind.de
Fri Jun 18 13:43:41 GMT 2004
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
More information about the freebsd-isp
mailing list