From owner-freebsd-current@FreeBSD.ORG Tue Feb 2 16:55:13 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5175B106566B for ; Tue, 2 Feb 2010 16:55:13 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout5.freenet.de (mout5.freenet.de [IPv6:2001:748:100:40::2:7]) by mx1.freebsd.org (Postfix) with ESMTP id E1A258FC12 for ; Tue, 2 Feb 2010 16:55:12 +0000 (UTC) Received: from [195.4.92.20] (helo=10.mx.freenet.de) by mout5.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.70 #1) id 1NcM1v-0007rs-BL; Tue, 02 Feb 2010 17:55:11 +0100 Received: from p57ae27b3.dip0.t-ipconnect.de ([87.174.39.179]:29735 helo=ernst.jennejohn.org) by 10.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.72 #1) id 1NcM1u-00006E-R1; Tue, 02 Feb 2010 17:55:11 +0100 Date: Tue, 2 Feb 2010 17:55:05 +0100 From: Gary Jennejohn To: Ed Schouten Message-ID: <20100202175505.5d0d5d3e@ernst.jennejohn.org> In-Reply-To: <20100201233216.GL77705@hoeg.nl> References: <429af92e1002011500q59b9ae09g908154ae63881ff5@mail.gmail.com> <20100201233216.GL77705@hoeg.nl> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.16.2; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Vincent Poy , freebsd-current@freebsd.org Subject: Re: HEADS UP: gone. All welcome . X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2010 16:55:13 -0000 On Tue, 2 Feb 2010 00:32:16 +0100 Ed Schouten wrote: > * Vincent Poy wrote: > > 3) I noticed that it seems the system in the w, who, finger, last, > > lastlogin output is not recognizing additional sessions of the same user on > > a new tty if they are already logged in such as this example. I am already > > logged in as vince on ptys/0 so I login again as vince on ptys/1: > > > > This is very odd. Could you try debugging this a bit more? In order to > ease debugging, I extended the getent command. You should be able to use > the following commands: > > - getent utmpx active > Get list of active sessions (`utmp') > - getent utmpx log > Get list of log entries (`wtmp') > - getent utmpx lastlogin > Get list of last login entries (`lastlog') > > When you log in, it should add a "user process" entry to the active > sessions database, append the same entry to the log and overwrite the > lastlogin entry for the corresponding user. > > An advantage of these commands is that they just perform a raw dump of > the data on screen, instead of having many forms of unwanted processing > on top. > What terminal emulator are you using? I'm using mrxvt-devel and I _do_ see every mrxvt which I have running with w, who, finger and last. --- Gary Jennejohn