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

From: Artyom Viklenko (artem_at_mipk.kharkiv.edu)
Date: 06/18/04

  • Next message: Alexander Koch: "Re: web-cyradm/apache2+vhosts - RESEND"
    Date: Fri, 18 Jun 2004 11:43:37 +0300
    To: Andrew Nelson <andrew__nelson@hotmail.com>
    
    

    Andrew Nelson wrote:
    > Hi,
    >
    > 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?
    >
    > Thanks,
    > Andrew
    >

    You can use accounting facility of the system.
    See accton(8), lastcomm(1), etc...

    -- 
            Sincerely yours,
                              Artyom V. Viklenko.
    ======================================================
    System Administrator            artem@mipk.kharkiv.edu
    ------------------------------------------------------
    IIAT NTU "KhPI" 21, Frunze Str., Kharkov Ukraine 61002
    Phone: +38 (0572) 400026        Fax: +38 (057) 7062749
    ======================================================
    _______________________________________________
    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: Alexander Koch: "Re: web-cyradm/apache2+vhosts - RESEND"