From owner-freebsd-stable@FreeBSD.ORG Thu Jan 7 22:51:08 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54D11106566C for ; Thu, 7 Jan 2010 22:51:08 +0000 (UTC) (envelope-from cowens@greatbaysoftware.com) Received: from portcityhosting.com (bayringfw.portcityweb.com [64.140.243.92]) by mx1.freebsd.org (Postfix) with ESMTP id 01E2F8FC08 for ; Thu, 7 Jan 2010 22:51:07 +0000 (UTC) Received: from [127.0.0.1] ([173.14.128.81]) by portcityhosting.com with MailEnable ESMTP; Thu, 7 Jan 2010 17:51:05 -0500 X-WatchGuard-Mail-Exception: Allow Message-ID: <4B46664A.5030606@greatbaysoftware.com> Date: Thu, 07 Jan 2010 17:55:06 -0500 From: Charles Owens MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-WatchGuard-AntiVirus: part scanned. clean action=allow X-ME-Bayesian: 0.000000 Subject: 8.0 changes behavior of "who am i" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2010 22:51:08 -0000 An observation... pre-8.0, "who am i" always returned the owner of the terminal device, regardless what you might have done with with "su". With 8.0, it returns the id of the user you've changed to. Example: ### 7.1 system [cowens@jakob ~]$ who am i cowens ttyp0 Jan 6 07:31 (169.254.222.1) [cowens@jakob ~]$ su Password: [root@jakob /home/cowens]# who am i cowens ttyp0 Jan 6 07:31 (169.254.222.1) ### 8.0 system [cowens@newercastle ~]$ who am i cowens 0 Jan 7 17:47 [cowens@newercastle ~]$ su [root@newercastle /home/cowens]# who am i root 0 Jan 7 17:47 The alternative syntax ("who -m") gives same result. The who(1) man page still states that both forms are supposed to give info about the "terminal attached to standard input," which, if I look with "w", it looks as I'd expect: [root@newercastle /home/cowens]# w 5:47PM up 1 day, 1 min, 2 users, load averages: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE WHAT root v0 - 17Dec09 21days -bash (bash) cowens pts/0 169.254.222.1 5:47PM - w Am I missing something, or do we have a bug here? (I looked but can't find any existing threads about this issue). I'm guessing that the symptom here results somehow from the introduction of pts(4). Tnx -- Charles Owens Great Bay Software, Inc.