From owner-freebsd-questions@FreeBSD.ORG Tue Jun 24 08:39:25 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 D112F37B401 for ; Tue, 24 Jun 2003 08:39:25 -0700 (PDT) Received: from perlpimp.codersluts.net (adsl-154-35-102.asm.bellsouth.net [68.154.35.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5CAA43F75 for ; Tue, 24 Jun 2003 08:39:24 -0700 (PDT) (envelope-from sektie@codersluts.net) Received: from perlpimp.codersluts.net (sektie@localhost.codersluts.net [127.0.0.1])h5OGcMAa094916; Tue, 24 Jun 2003 11:38:22 -0500 (EST) (envelope-from sektie@codersluts.net) From: "sektie" To: Raymond Sundland , freebsd-questions@freebsd.org Date: Tue, 24 Jun 2003 11:38:22 -0500 Message-Id: <20030624163618.M23828@codersluts.net> In-Reply-To: <3EF86369.3080606@sundland.com> References: <3EF86369.3080606@sundland.com> X-Mailer: Open WebMail 2.01 20030425 X-OriginatingIP: 192.168.0.9 (sektie) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Re: Possible bug in 5.1 - su / utmp 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, 24 Jun 2003 15:39:26 -0000 tsk tsk, you got posting about it before I did. I'm actually having the same problem. I've noticed 5.1 installed via cvsup/compile does this, but a cd new install does not. No one at work was able to replicate this error, but they were all using the CD. Randi Harper sektie@codersluts.net http://perlpimp.codersluts.net/ ---------- Original Message ----------- From: Raymond Sundland To: freebsd-questions@freebsd.org Sent: Tue, 24 Jun 2003 10:42:49 -0400 Subject: Possible bug in 5.1 - su / utmp > I found this very interesting when I saw it originally, but then > found it was probably a bug. > > Basically, when I log into my 5.1-RELEASE box (compiled today from > CVS), I can do a 'w' and get the following: > > % w > 10:39AM up 5:01, 1 user, load averages: 0.00, 0.00, 0.00 > USER TTY FROM LOGIN@ IDLE WHAT > ray p0 somehost 10:39AM - w > > Now, when I try to SU to root, this entry changes: > > % su - > Password: > Last login: Tue Jun 24 07:44:19 on ttyp1 > % whoami > root > % w > 10:40AM up 5:01, 1 user, load averages: 0.04, 0.01, 0.00 > USER TTY FROM LOGIN@ IDLE WHAT > root p0 - 10:40AM - w > > So, it looks like the utmp entry is being made (again) for ttyp0 and > recording it. This would be fine from my perspective, but is > misleading once I exit the root shell: > > % exit > % whoami > ray > % w > 10:42AM up 5:03, 1 user, load averages: 0.01, 0.00, 0.00 > USER TTY FROM LOGIN@ IDLE WHAT > root p0 - 10:40AM - w > > This may be a bug in PAM, since I don't think su calls login (or > maybe it does?) Note that this does not happen if I do not use the > '-' option for su. This also shows up in the lastlog: > > root ttyp2 Tue Jun 24 10:40 - 10:43 > (00:02) ray ttyp2 somehost Tue Jun 24 10:39 - > 10:40 (00:00) > > Anyone have any information about this... know what the bug is? > Maybe it's a setting I have set that can be changed? > > Thanks. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- unsubscribe@freebsd.org" ------- End of Original Message -------