From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 15:57:34 2003 Return-Path: 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 0881616A4B3 for ; Tue, 7 Oct 2003 15:57:34 -0700 (PDT) Received: from kochana.org (pd140.bydgoszcz.sdi.tpnet.pl [194.204.139.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AE2C43FB1 for ; Tue, 7 Oct 2003 15:57:32 -0700 (PDT) (envelope-from idaho@kochana.org) Received: from kochana.org (idaho@kochana.org [127.0.0.1]) by kochana.org (8.12.9p2/8.12.9) with ESMTP id h97MvWRN048209 for ; Wed, 8 Oct 2003 00:57:32 +0200 (CEST) (envelope-from idaho@kochana.org) Received: from localhost (idaho@localhost) by kochana.org (8.12.9p2/8.12.9/Submit) with ESMTP id h97MvVKp048206 for ; Wed, 8 Oct 2003 00:57:31 +0200 (CEST) (envelope-from idaho@kochana.org) Date: Wed, 8 Oct 2003 00:57:31 +0200 (CEST) From: Lukasz Wasikowski To: freebsd-questions@freebsd.org Message-ID: <20031008004255.L48093@kochana.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Logging users activity with termlog X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2003 22:57:34 -0000 Hello! FreeBSD 4.9-RC. termlog 1.0.2-STABLE. I want to log users activity on my box. 1. I'd like to run termlog -u UID as soon as user with UID log in. How should I do it? 2. I noticed that running "screen program" and then leaving it (quit, not detach) makes termlog to quit with: termlog: fatal: unable to poll device.: Bad file descriptor User is still logged in. The same quit reason is when user don't use screen and logout. What's wrong? 3. -t switch should put timestamps in the output file but it doesn't. Files created with -t and without it are identical. Maybe there is a better way to log users activity? -- Greetz, Idaho