Re: monitoring shell commands (recording username/cmd/time)

From: Dan Vande More (dvm_at_firstlink.com)
Date: 06/18/04

  • Next message: David Wolfskill: "Re: update to 4.10 via ssh"
    To: Andrew Nelson <andrew__nelson@hotmail.com>
    Date: Fri, 18 Jun 2004 07:59:18 -0600
    
    

    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

    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: David Wolfskill: "Re: update to 4.10 via ssh"

    Relevant Pages

    • Re: monitoring shell commands (recording username/cmd/time)
      ... > I'm wondering if there is a version of bash or tcsh that logs all commands ... I've used it myself some time ago on a shell server and it works ...
      (freebsd-isp)
    • Timestamps on history entries - in tcsh and bash
      ... The general topic is the history list and timestamps on the commands. ... As a starting point, note that in tcsh, the history list shows times (hours ... I have spent time perusing the man page for Bash 2.05b, ...
      (comp.unix.shell)
    • Re: Help! bash annoyingly kills background processes when xterm is closed
      ... > bash, but I'm having a serious usability problem with bash that is ... > Let's say I have an xterm, and in the xterm I have a tcsh running. ... > Now let's say from the tcsh, I fire up an xemacs in the background, ...
      (comp.unix.shell)
    • Re: MC Alternative? (File Managers)
      ... >> almost every personal computer in existence and are considered ... >> stripped down file manager for the console. ... > combination of programmable F# keys (through bash) and bash ... > by your shell (there are no built-in commands). ...
      (comp.os.linux.misc)
    • Re: MC Alternative? (File Managers)
      ... >> almost every personal computer in existence and are considered ... >> stripped down file manager for the console. ... > combination of programmable F# keys (through bash) and bash ... > by your shell (there are no built-in commands). ...
      (comp.unix.questions)