From owner-freebsd-questions Thu Nov 21 7:51:44 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 8D36E37B401 for ; Thu, 21 Nov 2002 07:51:43 -0800 (PST) Received: from titanjr.blacktrap.net (212.68.218.22.brutele.be [212.68.218.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD21F43EA3 for ; Thu, 21 Nov 2002 07:51:36 -0800 (PST) (envelope-from oli@titanjr.blacktrap.net) Received: from titanjr.blacktrap.net (localhost [IPv6:::1]) by titanjr.blacktrap.net (8.12.6/8.12.6) with ESMTP id gALFq19F036767 for ; Thu, 21 Nov 2002 16:52:02 +0100 (CET) (envelope-from oli@titanjr.blacktrap.net) Received: (from oli@localhost) by titanjr.blacktrap.net (8.12.6/8.12.6/Submit) id gALFpx7e036766 for freebsd-questions@freebsd.org; Thu, 21 Nov 2002 16:51:59 +0100 (CET) Date: Thu, 21 Nov 2002 16:51:59 +0100 From: Olivier To: freebsd-questions@freebsd.org Subject: How to monitor user commands Message-ID: <20021121155159.GA36762@titanjr.blacktrap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i 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 Hello, 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 Olivier ~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message