From owner-freebsd-questions@FreeBSD.ORG Thu Dec 16 22:55:07 2004 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 8D55F16A4CE for ; Thu, 16 Dec 2004 22:55:07 +0000 (GMT) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A8E943D5A for ; Thu, 16 Dec 2004 22:55:07 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [69.27.131.0] ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 16 Dec 2004 16:56:33 -0600 Message-ID: <41C21261.3040201@daleco.biz> Date: Thu, 16 Dec 2004 16:55:29 -0600 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd@orchid.homeunix.org References: <41C1D214.6080605@orchid.homeunix.org> <6.1.1.1.2.20041216150800.0c54d358@pop.gmail.com> <41C1F187.1000903@orchid.homeunix.org> In-Reply-To: <41C1F187.1000903@orchid.homeunix.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Dec 2004 22:56:33.0781 (UTC) FILETIME=[7D415250:01C4E3C2] cc: freebsd-questions@freebsd.org Subject: Re: user disappears from w and who 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: Thu, 16 Dec 2004 22:55:07 -0000 Karol Kwiatkowski wrote: >Brandon Lodriguss wrote: > > >>It seems like utmp/wtmp is getting updated when the user logs out of the >>second shell, then it ignores the fact that the user is still logged in to >>the original shell. >> >> > >I've got curious and investigated a bit. It looks like when user logs >in the second time (and it doesn't matter that he logs in as himself) >system information gets updated just like the previous session was >ended (like user logged off before logging in). > >I hope that will help someone with further investigation (I'm not >familiar with the source). > > IANAE, and I'm not sure if I understand the problem. Isn't it acting as expected? From login(5): -p By default, login discards any previous environment. The -p option disables this behavior. Kevin Kinsey