From owner-freebsd-stable@FreeBSD.ORG Fri Jul 4 06:50:18 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7645F37B401; Fri, 4 Jul 2003 06:50:18 -0700 (PDT) Received: from mx1.trigger.net (ip-209-29-143-5.trigger.net [209.29.143.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F9FE43FE1; Fri, 4 Jul 2003 06:50:17 -0700 (PDT) (envelope-from mikej@trigger.net) Received: from localhost (localhost [127.0.0.1]) by mx1.trigger.net (Postfix) with ESMTP id 59C9B5BD8BF; Fri, 4 Jul 2003 09:50:14 -0400 (EDT) Received: from mike (wettoast.org [199.166.206.19]) by mx1.trigger.net (Postfix) with SMTP id A7E645BD8BE; Fri, 4 Jul 2003 09:50:13 -0400 (EDT) From: "Mike Jakubik" To: Date: Fri, 4 Jul 2003 09:50:15 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20030703230140.GB828@atlantis.rodal.no> Importance: Normal X-Virus-Scanned: by AMaViS cc: Stable Subject: RE: who am i X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 13:50:18 -0000 I don't think this is a problem with su. The same occurs when running login in a shell, then logging out. I've seen this bug in FreeBSD since early 4.x, I guess I just never bothered to mention it, thinking someone would notice and fix it. It has certainly scared me a few times, it would be nice if it was corrected. Thanks. -----Original Message----- From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd-current@freebsd.org]On Behalf Of Morten Rodal Sent: Thursday, July 03, 2003 7:02 PM To: Richard Arends Cc: current@freebsd.org Subject: Re: who am i On Fri, Jul 04, 2003 at 12:46:10AM +0200, Richard Arends wrote: > Hello, > > Please take a look at this: > > ================================================================= > [snowlap] ~$ who am i > richard ttyp5 Jul 4 00:34 (:0.0) > [snowlap] ~$ su - > Password: > Last login: Fri Jul 4 00:31:17 on ttyp5 > snowlap# who am i > root ttyp5 Jul 4 00:34 > snowlap# exit > logout > [snowlap] ~$ who am i > root ttyp5 Jul 4 00:34 > ================================================================= > > Of course the latest 'who am i' should return 'richard' and not(!) 'root' > > Regards, > > Richard. > I am seeing the same things, and I reported similar stuff in another mail to this list. Someone suggested that this was a utmp(5) problem and might be a problem with the su(1) program. -- Morten Rodal