monitoring shell commands (recording username/cmd/time)

Artyom Viklenko artem at mipk.kharkiv.edu
Fri Jun 18 08:45:28 GMT 2004


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 at mipk.kharkiv.edu
------------------------------------------------------
IIAT NTU "KhPI" 21, Frunze Str., Kharkov Ukraine 61002
Phone: +38 (0572) 400026        Fax: +38 (057) 7062749
======================================================


More information about the freebsd-isp mailing list