From owner-freebsd-isp@FreeBSD.ORG Fri Jun 18 08:45:28 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73AEB16A4CE for ; Fri, 18 Jun 2004 08:45:28 +0000 (GMT) Received: from flash.mipk.kharkiv.edu (flash.mipk.kharkiv.edu [194.44.157.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AC2943D2F for ; Fri, 18 Jun 2004 08:45:22 +0000 (GMT) (envelope-from artem@mipk.kharkiv.edu) Received: from mipk.kharkiv.edu (rainbow.mipk.kharkiv.edu [192.168.9.241]) i5I8hbLs041625; Fri, 18 Jun 2004 11:43:39 +0300 (EEST) (envelope-from artem@mipk.kharkiv.edu) Message-ID: <40D2AB39.8000201@mipk.kharkiv.edu> Date: Fri, 18 Jun 2004 11:43:37 +0300 From: Artyom Viklenko Organization: IIAT NTU "KhPI" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: ru, uk, en MIME-Version: 1.0 To: Andrew Nelson References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-isp@freebsd.org Subject: Re: monitoring shell commands (recording username/cmd/time) X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2004 08:45:28 -0000 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 ======================================================