Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2004 11:43:37 +0300
From:      Artyom Viklenko <artem@mipk.kharkiv.edu>
To:        Andrew Nelson <andrew__nelson@hotmail.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: monitoring shell commands (recording username/cmd/time)
Message-ID:  <40D2AB39.8000201@mipk.kharkiv.edu>
In-Reply-To: <BAY18-F66hIqU7MOKZv0001212c@hotmail.com>
References:  <BAY18-F66hIqU7MOKZv0001212c@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
======================================================



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