From owner-freebsd-questions Thu Nov 21 23:48:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7851A37B401 for ; Thu, 21 Nov 2002 23:48:30 -0800 (PST) Received: from sffwd0.suedfactoring.de (port-212-202-224-251.reverse.qsc.de [212.202.224.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id A043843E97 for ; Thu, 21 Nov 2002 23:48:29 -0800 (PST) (envelope-from axel.gruner@suedfactoring.de) Received: from pcs28 (pcs28.SUEDFAC.COM [10.2.1.228]) by sffwd0.suedfactoring.de (8.12.3/8.11.3/SuSE Linux 8.11.1-0.5) with SMTP id gAM7SbFs001568; Fri, 22 Nov 2002 08:28:40 +0100 Date: Fri, 22 Nov 2002 08:51:01 +0100 From: Axel Gruner To: Olivier Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to monitor user commands Message-Id: <20021122085101.1983c0b1.axel.gruner@suedfactoring.de> In-Reply-To: <20021121155159.GA36762@titanjr.blacktrap.net> References: <20021121155159.GA36762@titanjr.blacktrap.net> Reply-To: axel.gruner@suedfactoring.de Organization: suedfactoring GmbH X-Mailer: Sylpheed version 0.7.2claws (GTK+ 1.2.10; i686-suse-linux) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 21 Nov 2002 16:51:59 +0100 Olivier wrote: > Here is my problem : I have a FreeBSD box with a couple shell > accounts, accessible through ssh. I would like to be able to monitor > the commands some users are issuing, and be noticed about when they > log, how long and what they do, e.g by mail. I know > 'w','last','lastcomm', etc.. but those don't exactly suit my needs. I > could examine those users' .bash_history files but this is easy to > overcome, they could 'export HISTFILE=/dev/null' whenever they login. > So I need something more reliable... Is there any tool in the ports > that could do that? Or has anybody done any script or something that > would help me? Thanks a lot for any ideas Ever tried the tools "watch"? asg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message