From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 19:32:13 2015 Received: (at submit) by debbugs.gnu.org; 25 Aug 2015 23:32:13 +0000 Received: from localhost ([127.0.0.1]:38411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUNhN-0000Rb-9V for submit@debbugs.gnu.org; Tue, 25 Aug 2015 19:32:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48431) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUNhK-0000RS-Mt for submit@debbugs.gnu.org; Tue, 25 Aug 2015 19:32:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUNhJ-0002XD-Ng for submit@debbugs.gnu.org; Tue, 25 Aug 2015 19:32:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUNhJ-0002X9-Lc for submit@debbugs.gnu.org; Tue, 25 Aug 2015 19:32:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUNhI-0008QU-Po for bug-coreutils@gnu.org; Tue, 25 Aug 2015 19:32:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUNhD-0002Sr-Kl for bug-coreutils@gnu.org; Tue, 25 Aug 2015 19:32:08 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:60007 helo=homiemail-a61.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUNhD-0002OA-DP for bug-coreutils@gnu.org; Tue, 25 Aug 2015 19:32:03 -0400 Received: from homiemail-a61.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTP id 1E51257807C for ; Tue, 25 Aug 2015 16:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=MG+7ZMCLo5j70LiHLC4 dcJufLVM=; b=aKiTMX4sSfvIuQx4uADQAiJGX+9vKeXvF2dZXhLj01RaJcUKtAs tZTrT3MdOVSmrVRvoRT7LnLn3vX4PkVDz3uZlYQDmSmggdV7DsEiPZe5GUSLcguv bIYgSPkcIyWeUKDIJCWRfAt4WJ2WANAJYu/Wd+eQ7OcSuGtRit8QvxFE= Received: from jidanni.org (114-26-40-191.dynamic.hinet.net [114.26.40.191]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTPSA id D4196578077 for ; Tue, 25 Aug 2015 16:31:54 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-coreutils@gnu.org Subject: who shows no users nowadays on Debian Date: Wed, 26 Aug 2015 07:14:41 +0800 Message-ID: <87d1yb0xlq.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) (info "(coreutils) who invocation") says If given no non-option arguments, =E2=80=98who=E2=80=99 prints the follow= ing information for each user currently logged on: login name, terminal line, login time, and remote hostname or X display. Say if this means remote hostname or remote X display. or X display or remote hostname. By the way, now on Debian sid: $ who $ ps a PID TTY STAT TIME COMMAND 593 tty7 Ss+ 0:10 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1310 pts/0 Ss 0:00 bash 1338 pts/1 Ss 0:00 su - 1339 pts/1 S+ 0:00 -su 2005 tty1 Ss+ 0:00 /sbin/agetty --noclear tty1 linux 2073 pts/0 R+ 0:00 ps a From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 20:59:20 2015 Received: (at 21349) by debbugs.gnu.org; 26 Aug 2015 00:59:20 +0000 Received: from localhost ([127.0.0.1]:38427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUP3g-0002RT-52 for submit@debbugs.gnu.org; Tue, 25 Aug 2015 20:59:20 -0400 Received: from mail2.vodafone.ie ([213.233.128.44]:46237) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUP3d-0002RK-IS for 21349@debbugs.gnu.org; Tue, 25 Aug 2015 20:59:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4GAPkO3VVtT42t/2dsb2JhbABdgklSHzVpgUCsb5FlhXkCgTlMAQEBAQEBgQuEJAEBBCMPAVYJAg0LAgIFDQETAgIPAkYGAQwIAQGILgEIlXmdHYVvjxwsgSKKNYUREwGCVYFDBYxriEyFBoUti0uRSCaCDhyBVT00AQGBBAcXgScBAQE Received: from unknown (HELO localhost.localdomain) ([109.79.141.173]) by mail2.vodafone.ie with ESMTP; 26 Aug 2015 01:59:07 +0100 Message-ID: <55DD0F5B.705@draigBrady.com> Date: Wed, 26 Aug 2015 01:59:07 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= , 21349@debbugs.gnu.org Subject: Re: bug#21349: who shows no users nowadays on Debian References: <87d1yb0xlq.fsf@jidanni.org> In-Reply-To: <87d1yb0xlq.fsf@jidanni.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21349 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 26/08/15 00:14, 積丹尼 Dan Jacobson wrote: > (info "(coreutils) who invocation") says > > If given no non-option arguments, ‘who’ prints the following > information for each user currently logged on: login name, terminal > line, login time, and remote hostname or X display. > > Say if this means > remote hostname or remote X display. > > or > > X display or remote hostname. > > By the way, now on Debian sid: > > $ who > $ ps a > PID TTY STAT TIME COMMAND > 593 tty7 Ss+ 0:10 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 > 1310 pts/0 Ss 0:00 bash > 1338 pts/1 Ss 0:00 su - > 1339 pts/1 S+ 0:00 -su > 2005 tty1 Ss+ 0:00 /sbin/agetty --noclear tty1 linux > 2073 pts/0 R+ 0:00 ps a Could you look a little deeper? who(1) calls read_utmp() from: http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/readutmp.c;hb=HEAD thanks, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 21:05:55 2015 Received: (at 21349) by debbugs.gnu.org; 26 Aug 2015 01:05:55 +0000 Received: from localhost ([127.0.0.1]:38431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUPA3-0002bj-6G for submit@debbugs.gnu.org; Tue, 25 Aug 2015 21:05:55 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:37682 helo=homiemail-a14.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUP9z-0002bX-Ot for 21349@debbugs.gnu.org; Tue, 25 Aug 2015 21:05:52 -0400 Received: from homiemail-a14.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTP id CB09D392084; Tue, 25 Aug 2015 18:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=+Gpss7ZvUZmfWYaNwMR+Bn8mHCk=; b=fOk4UcnoqJU2F wfbP76fiDJAdTFTMELIB6Af42vVCG9uy/Zyg2bNi1s2DpRdzbFpDaZytv5cEheG7 ZBqbQxShpt9oT7B3g0WSIJphgYAbo1uQ3Uw+N5hwJ8cWxcv9gqmg1aMt2f+K7o6o Vv/TFeEB7t/8hQYFvGh6oguWURQa4c= Received: from jidanni.org (114-26-40-191.dynamic.hinet.net [114.26.40.191]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTPSA id 884D9392082; Tue, 25 Aug 2015 18:05:49 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: =?utf-8?Q?P=C3=A1draig?= Brady Subject: Re: bug#21349: who shows no users nowadays on Debian References: <87d1yb0xlq.fsf@jidanni.org> Date: Wed, 26 Aug 2015 09:05:45 +0800 Message-ID: <87zj1ezwnq.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21349 Cc: 21349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) All I know is nowadays everybody (me) uses just X windows so to achieve the who goals: NAME who - show who is logged on DESCRIPTION Print information about users who are currently logged in. some adjustments should be made. Else it looks like there are no users and maintenance can begin, etc. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 03:02:57 2015 Received: (at 21349) by debbugs.gnu.org; 26 Aug 2015 07:02:57 +0000 Received: from localhost ([127.0.0.1]:38529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUUjY-0002QC-8w for submit@debbugs.gnu.org; Wed, 26 Aug 2015 03:02:56 -0400 Received: from mailgw1.uni-kl.de ([131.246.120.220]:45397) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUUjV-0002Q3-HT for 21349@debbugs.gnu.org; Wed, 26 Aug 2015 03:02:54 -0400 Received: from sushi.unix-ag.uni-kl.de (sushi.unix-ag.uni-kl.de [IPv6:2001:638:208:ef34:0:ff:fe00:65]) by mailgw1.uni-kl.de (8.14.4/8.14.4/Debian-7) with ESMTP id t7Q72pKj023230 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 26 Aug 2015 09:02:51 +0200 Received: from sushi.unix-ag.uni-kl.de (ip6-localhost [IPv6:::1]) by sushi.unix-ag.uni-kl.de (8.14.4/8.14.4/Debian-4) with ESMTP id t7Q72ptu029512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 26 Aug 2015 09:02:51 +0200 Received: (from auerswal@localhost) by sushi.unix-ag.uni-kl.de (8.14.4/8.14.4/Submit) id t7Q72otd029511; Wed, 26 Aug 2015 09:02:50 +0200 Date: Wed, 26 Aug 2015 09:02:50 +0200 From: Erik Auerswald To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#21349: who shows no users nowadays on Debian Message-ID: <20150826070250.GA29054@unix-ag.uni-kl.de> References: <87d1yb0xlq.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87d1yb0xlq.fsf@jidanni.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 21349 Cc: 21349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) Hi Dan, On Wed, Aug 26, 2015 at 07:14:41AM +0800, 積丹尼 Dan Jacobson wrote: > (info "(coreutils) who invocation") says > > If given no non-option arguments, ‘who’ prints the following > information for each user currently logged on: login name, terminal > line, login time, and remote hostname or X display. > > Say if this means > remote hostname or remote X display. > > or > > X display or remote hostname. > > By the way, now on Debian sid: > > $ who > $ ps a > PID TTY STAT TIME COMMAND > 593 tty7 Ss+ 0:10 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 > 1310 pts/0 Ss 0:00 bash > 1338 pts/1 Ss 0:00 su - > 1339 pts/1 S+ 0:00 -su > 2005 tty1 Ss+ 0:00 /sbin/agetty --noclear tty1 linux > 2073 pts/0 R+ 0:00 ps a This works on a current Debian/testing system (stable as well), so it might be a recent Debian/Sid (unstable) issue. Perhaps you want to open a bug report there? Thanks, Erik From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 16:13:41 2015 Received: (at 21349) by debbugs.gnu.org; 26 Aug 2015 20:13:41 +0000 Received: from localhost ([127.0.0.1]:39218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUh4n-00017R-CN for submit@debbugs.gnu.org; Wed, 26 Aug 2015 16:13:41 -0400 Received: from joseki.proulx.com ([216.17.153.58]:39131) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUh4k-00017J-US for 21349@debbugs.gnu.org; Wed, 26 Aug 2015 16:13:39 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 1DE0521236; Wed, 26 Aug 2015 14:13:38 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id F28922DC4D; Wed, 26 Aug 2015 14:13:37 -0600 (MDT) Date: Wed, 26 Aug 2015 14:13:37 -0600 From: Bob Proulx To: Erik Auerswald Subject: Re: bug#21349: who shows no users nowadays on Debian Message-ID: <20150826140806480686334@bob.proulx.com> References: <87d1yb0xlq.fsf@jidanni.org> <20150826070250.GA29054@unix-ag.uni-kl.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150826070250.GA29054@unix-ag.uni-kl.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 21349 Cc: 21349@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Erik Auerswald wrote: > This works on a current Debian/testing system (stable as well), so it might > be a recent Debian/Sid (unstable) issue. Perhaps you want to open a bug > report there? Updating utmp depends upon the terminal emulator. XTerm updates it. Any XTerm user will be logged in utmp. I use XTerms and all of my terminals log as a user in utmp. But most other terminal emulators ignore utmp and don't log anything. If they don't log it then there isn't anything 'who' can do about it. AFAIK it doesn't have anything to do with Debian changing anything. It is all about the changing state of Desktop Environments. For the graphical mouse user today they have exactly one "login" now and that is the entirety of the graphical environment and they never launch a terminal emulator. Bob From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 16:31:25 2015 Received: (at 21349) by debbugs.gnu.org; 26 Aug 2015 20:31:25 +0000 Received: from localhost ([127.0.0.1]:39226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUhLw-0001b4-Ne for submit@debbugs.gnu.org; Wed, 26 Aug 2015 16:31:25 -0400 Received: from mout.gmx.net ([212.227.15.19]:57302) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUhLv-0001aq-FA for 21349@debbugs.gnu.org; Wed, 26 Aug 2015 16:31:23 -0400 Received: from localhost.localdomain ([80.144.35.230]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LmKOI-1Yv5Ps1jaU-00Zw3R; Wed, 26 Aug 2015 22:31:14 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id EFE9D3F278; Wed, 26 Aug 2015 22:31:13 +0200 (CEST) From: Sven Joachim To: Bob Proulx Subject: Re: bug#21349: who shows no users nowadays on Debian References: <87d1yb0xlq.fsf@jidanni.org> <20150826070250.GA29054@unix-ag.uni-kl.de> <20150826140806480686334@bob.proulx.com> Date: Wed, 26 Aug 2015 22:31:13 +0200 In-Reply-To: <20150826140806480686334@bob.proulx.com> (Bob Proulx's message of "Wed, 26 Aug 2015 14:13:37 -0600") Message-ID: <8737z5zt9q.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:64tkZepQGjgaKwu9z0pPXBFrHjGytM2eMTjqSMyqvrHXDb0EmAE YL3YPLHFAudgN8Z6VujJ7a6U67VS8PB3veXGd03wvjAtFr3YGL+CiS4TKFwRRopSHBBgkI/ SLpGvG5X/DLr3Uo8rVZ9UhIWgLZDtgdOb9kpLPDhELQj2Hrf/qBIFA7Fqng9k5xU4x1aktM KqCirqDpAGEVJhj0c4SHw== X-UI-Out-Filterresults: notjunk:1;V01:K0:joX8jKmxGfQ=:BF2o0mIk2pS0iDI33GqxA9 h7mBAhQksZRCJ/JNzPPNva7FT2kAsOK76HEyBN23iesEAI2ui7I7l394X2IEZtj+n475nasI5 hVnH4LuEHb09hCCTzujbSr+nZc2fCWSgPGnOspffpBCJFIn3hNa5pFbzr3ziXieBfGKktXDMt uBOom4DsOG4D4HlTwSZTAzmMhYorWIYNdYS0dCy6rtX/kFKfyZJc0MVYikT3IRfcFdUP/nux3 iL3d07zQxCER9wb8N+7taCgnkfsbnJiv9Lyb5HkTtIrPRvb8U99/368uitCPgCx4VE1gsPYKF HyINNLCqtb/m5vdO8rJKa3r9qaDZQyX2eCw6ozuX7JQsaHB3ZXFgwQuRHWn6+FzM1XeJVrCqe VR2rgcw7sJvBU/g3JX3aKXSFmdO1Qn+fyXFyiLfWy1NQc+JdS/Rf4mAqCxL5TzzcPe2tJds0q ZWDbmYtlxbA9dyj/W19DmYfERAj/vcanzZhnx4Tw1X9uvsYzj7Z3H1r+czpkRx1NiWka0t3NE w24FN+Zp6gPWe57I5yMT33rL3XbUNuXu//GEIb/QswgKqU2YXA3rPGEry36PlKfFhERVLOxbz 1MktrTTFJvuMzM3LvOLobz8363OVsJ4jVBuapx7MbaqGA0OgRtAtn0FL+cvvJOITDGbCBsY4h zaQKIII5CePYLSXGA/2ZcWtP0EA7LBI+lZB817iDfKmYnACizG2ArpjjXptoq9hSyS3EHkRSU nXMOE35ybCSu0T40nR26NYZcKqj579pbS3DCEg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21349 Cc: Erik Auerswald , 21349@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2015-08-26 22:13 +0200, Bob Proulx wrote: > Erik Auerswald wrote: >> This works on a current Debian/testing system (stable as well), so it might >> be a recent Debian/Sid (unstable) issue. Perhaps you want to open a bug >> report there? > > Updating utmp depends upon the terminal emulator. XTerm updates it. > Any XTerm user will be logged in utmp. I use XTerms and all of my > terminals log as a user in utmp. But most other terminal emulators > ignore utmp and don't log anything. If they don't log it then there > isn't anything 'who' can do about it. > > AFAIK it doesn't have anything to do with Debian changing anything. It most probably has, the latest xterm version (319) only writes a utmp entry if you start a login shell (i.e. use the -ls option). That's supposed to be a bug fix[1]. Cheers, Sven 1. https://bugs.debian.org/794201 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 16:40:39 2015 Received: (at 21349) by debbugs.gnu.org; 26 Aug 2015 20:40:39 +0000 Received: from localhost ([127.0.0.1]:39233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUhUs-0001or-R4 for submit@debbugs.gnu.org; Wed, 26 Aug 2015 16:40:39 -0400 Received: from joseki.proulx.com ([216.17.153.58]:39265) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUhUp-0001oi-SM for 21349@debbugs.gnu.org; Wed, 26 Aug 2015 16:40:36 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 4FC8921232; Wed, 26 Aug 2015 14:40:35 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 2309C2DC4D; Wed, 26 Aug 2015 14:40:35 -0600 (MDT) Date: Wed, 26 Aug 2015 14:40:35 -0600 From: Bob Proulx To: Sven Joachim Subject: Re: bug#21349: who shows no users nowadays on Debian Message-ID: <20150826143323469832183@bob.proulx.com> References: <87d1yb0xlq.fsf@jidanni.org> <20150826070250.GA29054@unix-ag.uni-kl.de> <20150826140806480686334@bob.proulx.com> <8737z5zt9q.fsf@turtle.gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8737z5zt9q.fsf@turtle.gmx.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 21349 Cc: Erik Auerswald , 21349@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Sven Joachim wrote: > Bob Proulx wrote: > > AFAIK it doesn't have anything to do with Debian changing anything. > > It most probably has, the latest xterm version (319) only writes a utmp > entry if you start a login shell (i.e. use the -ls option). That's > supposed to be a bug fix[1]. > 1. https://bugs.debian.org/794201 Hmm... I guess I haven't logged out since that xterm arrived. $ who | grep -c pts/ 61 ... counting all of the entries up to pts/65... And so it appears that it has been logging for me. But if I explicitly start a new xterm: $ xterm & And then in that window look: $ tty /dev/pts/61 $ who | grep -c pts/61 0 So I stand corrected. It appears that very recently it was changed to not log utmp. In spite of the bug log reporting the bug to have been fixed this still seems to be active with an up to date Sid. It appears to have arrived Sunday with version 319-1. Even explicitly giving +ut doesn't do anything. I will further take the discussion to the Debian bug log since it doesn't have anything to do with coreutils. Bob From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 20:19:30 2015 Received: (at 21349) by debbugs.gnu.org; 27 Aug 2015 00:19:30 +0000 Received: from localhost ([127.0.0.1]:39368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUkug-0000WK-A0 for submit@debbugs.gnu.org; Wed, 26 Aug 2015 20:19:30 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:45978 helo=Ishtar.hs.tlinx.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUkub-0000W7-7t for 21349@debbugs.gnu.org; Wed, 26 Aug 2015 20:19:28 -0400 Received: from [192.168.4.12] (Athenae [192.168.4.12]) by Ishtar.hs.tlinx.org (8.14.9/8.14.4/SuSE Linux 0.8) with ESMTP id t7R0JJa6018002; Wed, 26 Aug 2015 17:19:22 -0700 Message-ID: <55DE5786.2060108@tlinx.org> Date: Wed, 26 Aug 2015 17:19:18 -0700 From: "L. A. Walsh" User-Agent: Thunderbird MIME-Version: 1.0 To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= Subject: Re: bug#21349: who shows no users nowadays on Debian References: <87d1yb0xlq.fsf@jidanni.org> In-Reply-To: <87d1yb0xlq.fsf@jidanni.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 21349 Cc: 21349@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) 積丹尼 Dan Jacobson wrote: > (info "(coreutils) who invocation") says > > If given no non-option arguments, ‘who’ prints the following > information for each user currently logged on: login name, terminal > line, login time, and remote hostname or X display. > > $ who > The same thing happens on openSuSE -- I think it's because of the move to systemd -- it doesn't maintain the wtmp/utmp stuf.. > who > who am i > who -a > who -b > who -d > who -H NAME LINE TIME COMMENT > who -l > who -m > who -p > who -q I> who -r ---- I don't have utmp, just a smallish wtmp: So I tried a symlink: sudo ln -s /var/log/wtmp /var/run/utmp It's not quite the same, but some things work: Ishtar:law> who am i law pts/1 Aug 26 16:37 (athenae) Ishtar:law> who law pts/0 Aug 26 11:59 (athenae) law pts/1 Aug 26 16:37 (athenae) who -b doesn't work, but uptime does: Ishtar:law> who -b Ishtar:law> uptime 17:16pm up 61 days 12:36, 2 users, load average: 0.00, 0.06, 0.11 So has debian been moving to systemd as well? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 27 03:40:29 2015 Received: (at 21349) by debbugs.gnu.org; 27 Aug 2015 07:40:29 +0000 Received: from localhost ([127.0.0.1]:39596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUrnQ-0002j7-UZ for submit@debbugs.gnu.org; Thu, 27 Aug 2015 03:40:29 -0400 Received: from mailgw1.uni-kl.de ([131.246.120.220]:55828) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUrnM-0002iv-H8 for 21349@debbugs.gnu.org; Thu, 27 Aug 2015 03:40:25 -0400 Received: from sushi.unix-ag.uni-kl.de (sushi.unix-ag.uni-kl.de [IPv6:2001:638:208:ef34:0:ff:fe00:65]) by mailgw1.uni-kl.de (8.14.4/8.14.4/Debian-7) with ESMTP id t7R7eMVB002175 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 27 Aug 2015 09:40:22 +0200 Received: from sushi.unix-ag.uni-kl.de (ip6-localhost [IPv6:::1]) by sushi.unix-ag.uni-kl.de (8.14.4/8.14.4/Debian-4) with ESMTP id t7R7eMF1030972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 27 Aug 2015 09:40:22 +0200 Received: (from auerswal@localhost) by sushi.unix-ag.uni-kl.de (8.14.4/8.14.4/Submit) id t7R7eLr8030971; Thu, 27 Aug 2015 09:40:21 +0200 Date: Thu, 27 Aug 2015 09:40:21 +0200 From: Erik Auerswald To: Bob Proulx Subject: Re: bug#21349: who shows no users nowadays on Debian Message-ID: <20150827074021.GA29792@unix-ag.uni-kl.de> References: <87d1yb0xlq.fsf@jidanni.org> <20150826070250.GA29054@unix-ag.uni-kl.de> <20150826140806480686334@bob.proulx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150826140806480686334@bob.proulx.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 21349 Cc: 21349@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.7 (---) Hi, On Wed, Aug 26, 2015 at 02:13:37PM -0600, Bob Proulx wrote: > Erik Auerswald wrote: > > This works on a current Debian/testing system (stable as well), so it might > > be a recent Debian/Sid (unstable) issue. Perhaps you want to open a bug > > report there? > > Updating utmp depends upon the terminal emulator. XTerm updates it. Logins via X used to update it as well (seldomly used nowadays). The local desktop session usually updates utmp as well, at least with XFCE on Debian/testing this is still the case. GNOME Terminal updates utmp as well. Screen updates it, too. When I last looked at it, Konsole (from KDE) did not update utmp. > AFAIK it doesn't have anything to do with Debian changing anything. Sven Joachim wrote: > It most probably has, the latest xterm version (319) only writes a utmp > entry if you start a login shell (i.e. use the -ls option) Linda A. Walsh noticed a similar thing: > The same thing happens on openSuSE Of course this is most likely caused by changes outside of coreutils. On a "desktop" system without any terminal windows, the desktop session should be shown in the "who" output. On all systems I could easily check that is the case. I do not have any SystemD/GNOME or KDE systems to test. Thanks, Erik From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 27 10:46:42 2015 Received: (at 21349) by debbugs.gnu.org; 27 Aug 2015 14:46:42 +0000 Received: from localhost ([127.0.0.1]:40415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUyRt-0007nL-Lu for submit@debbugs.gnu.org; Thu, 27 Aug 2015 10:46:42 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:51144 helo=homiemail-a60.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUyRq-0007nC-Sp for 21349@debbugs.gnu.org; Thu, 27 Aug 2015 10:46:39 -0400 Received: from homiemail-a60.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTP id DE7DB3BC07A; Thu, 27 Aug 2015 07:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=SUjmhoEcT5Q3LNeC3do3Rv6DVGA=; b=NXUImYyLf44rv f06lSZJI4e2ag7DI7TKvSYoje0ii2o4kt2w9ayGMwq+EbXhwpDmX9RY3WGihngMx 3J+rNnp2Rgnjv9rJyuLjKnVvdfdSS765RTGlKyI/XcbXJc4UEnbVWTLVT/pNfEqQ KFPHrQktCgwstr12Jc9xGFezhbet28= Received: from jidanni.org (114-26-42-27.dynamic.hinet.net [114.26.42.27]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTPSA id 9F7F23BC077; Thu, 27 Aug 2015 07:46:37 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Erik Auerswald Subject: Re: bug#21349: who shows no users nowadays on Debian References: <87d1yb0xlq.fsf@jidanni.org> Date: Thu, 27 Aug 2015 22:46:34 +0800 Message-ID: <878u8wssad.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21349 Cc: 21349@debbugs.gnu.org, Bob Proulx X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) All I know is I also filed http://bugs.debian.org/796942 w shows no users even though I must... http://bugs.debian.org/796943 wall can't write to anybody nowadays All I know is all this stuff should be updated to still work with the latest Unix/Linux. Otherwise after every few years one will need xwho and ywho and zwho just to check who's around... From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 21 06:08:52 2015 Received: (at 21349) by debbugs.gnu.org; 21 Nov 2015 11:08:52 +0000 Received: from localhost ([127.0.0.1]:46645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a062F-00018T-RY for submit@debbugs.gnu.org; Sat, 21 Nov 2015 06:08:52 -0500 Received: from mail2.vodafone.ie ([213.233.128.44]:52116) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a062D-00018K-Td for 21349@debbugs.gnu.org; Sat, 21 Nov 2015 06:08:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An4QAGxPUFZtT5v9/2dsb2JhbABegmlSHzSCOK5PkGkdhW8BAgKBNEwBAQEBAQGBC4Q1AQEEEhEPAUYQCQINCwICBRYLAgIJAwIBAgFFBgEMCAEBHogQAQiSO5MKiiuFbYoaAQEBAQEBBAEBAQEBAR2BAYRYhXmHdYFEAQSWTIUjiWlJhxCKQoEOh0ZjhAQ+hV8BAQE Received: from unknown (HELO localhost.localdomain) ([109.79.155.253]) by mail2.vodafone.ie with ESMTP; 21 Nov 2015 11:08:49 +0000 Subject: Re: bug#21349: who shows no users nowadays on Debian To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= , Erik Auerswald References: <87d1yb0xlq.fsf@jidanni.org> <878u8wssad.fsf@jidanni.org> From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: <565050C0.4030706@draigBrady.com> Date: Sat, 21 Nov 2015 11:08:48 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <878u8wssad.fsf@jidanni.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21349 Cc: 21349@debbugs.gnu.org, Bob Proulx X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 27/08/15 15:46, 積丹尼 Dan Jacobson wrote: > All I know is I also filed > http://bugs.debian.org/796942 w shows no users even though I must... > http://bugs.debian.org/796943 wall can't write to anybody nowadays > > All I know is all this stuff should be updated to still work with the > latest Unix/Linux. Otherwise after every few years one will need xwho and > ywho and zwho just to check who's around... A related issue with gnome-terminal on Fedora 23 https://bugzilla.redhat.com/1280724 where that doesn't update /var/run/utmp cheers, Pádraig From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 27 16:35:25 2015 Received: (at 21349) by debbugs.gnu.org; 27 Dec 2015 21:35:25 +0000 Received: from localhost ([127.0.0.1]:45004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aDIyL-00062h-KO for submit@debbugs.gnu.org; Sun, 27 Dec 2015 16:35:25 -0500 Received: from ishtar.tlinx.org ([173.164.175.65]:57121 helo=Ishtar.hs.tlinx.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aDIyJ-00062V-Ns for 21349@debbugs.gnu.org; Sun, 27 Dec 2015 16:35:24 -0500 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.hs.tlinx.org (8.14.9/8.14.4/SuSE Linux 0.8) with ESMTP id tBRLZDx0067278; Sun, 27 Dec 2015 13:35:17 -0800 Message-ID: <56805990.7090205@tlinx.org> Date: Sun, 27 Dec 2015 13:35:12 -0800 From: "L. A. Walsh" User-Agent: Thunderbird MIME-Version: 1.0 To: Erik Auerswald Subject: Re: bug#21349: who shows no users (looking in wrong place) References: <87d1yb0xlq.fsf@jidanni.org> <20150826070250.GA29054@unix-ag.uni-kl.de> <20150826140806480686334@bob.proulx.com> <20150827074021.GA29792@unix-ag.uni-kl.de> In-Reply-To: <20150827074021.GA29792@unix-ag.uni-kl.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 21349 Cc: 21349@debbugs.gnu.org, Bob Proulx , =?UTF-8?B?56mN5Li5?= =?UTF-8?B?5bC8IERhbiBKYWNvYnNvbg==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Erik Auerswald wrote: > > Linda A. Walsh noticed a similar thing: > >> The same thing happens on openSuSE >> ---- Looked into this a bit more and found that while 'w' and 'who' didn't work, "last" did. Tracked it down to this... from the linux programmer's manual UTMP(5) it says conforming implementations should look in: FILES /var/run/utmp /var/log/wtmp -------------- tracing who (I assume 'w' uses similar code): # strace who|& grep /var access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or directory) open("/var/run/utmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or directory) open("/var/run/utmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) ---- I.e. it isn't checking the 2nd location. Adding a link in the *ephemeral* (tmpfs/ramdisk) /var/run allows it to temporarily work: # ln -s ../log/wtmp utmp > who law pts/0 2015-11-29 09:49 (athenae) root tty1 2015-12-22 09:26 law pts/1 2015-12-23 16:57 (athenae) law pts/0 2015-12-25 17:46 (athenae) law pts/2 2015-12-25 21:42 (athenae) law pts/4 2015-12-25 22:23 (athenae) law pts/5 2015-12-27 08:46 (athenae) law pts/6 2015-12-27 12:54 (athenae) law pts/7 2015-12-27 12:59 (athenae) > w 13:18:22 up 108 days, 21:03, 459 users, load average: 1.33, 1.25, 0.99 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT law pts/0 athenae 29Nov15 39:52m 6:38 1.18s dovecot/imap [l root tty1 Tue09 3days 0.28s 0.28s -bash law pts/1 athenae Wed16 2days 0.30s 0.30s -bash law pts/0 athenae Fri17 39:52m 6:38 1.11s -bash law pts/2 athenae Fri21 37:18m 0.42s 0.42s -bash law pts/4 athenae Fri22 38:52m 0.25s 0.25s -bash law pts/5 athenae 08:46 1:39m 0.57s 0.57s -bash law pts/6 athenae 12:54 12:44 0.37s 0.37s -bash law pts/7 athenae 12:59 0.00s 0.29s 0.01s w > last|grep 'still log' law pts/7 athenae Sun Dec 27 12:59 still logged in law pts/6 athenae Sun Dec 27 12:54 still logged in law pts/5 athenae Sun Dec 27 08:46 still logged in law pts/4 athenae Fri Dec 25 22:23 still logged in law pts/2 athenae Fri Dec 25 21:42 still logged in law pts/0 athenae Fri Dec 25 17:46 still logged in law pts/1 athenae Wed Dec 23 16:57 still logged in root tty1 Tue Dec 22 09:26 still logged in ---------------------------------------------- While creating a symlink in /var/run/utmp => /var/log/wtmp is a per-boot, workaround to get this to work until 'w/who' are fixed, both of them should check the linux-standard locations documented in the manpage. Likely /var/log is a new location (as /var/run was made ephemeral as part of the transition to systemd). Note, there was some pressure by the systemd folks to also make /var/log ephemeral as well as /tmp and /var/tmp, but those were resisted, at least in "SUSE"...(at least for now...), since the default for systemd is to not store or save logfiles (or coredumps) over boots. One can tell from design choices like that systemd is designed for end-consumer systems, where logs that document things might be inconvenient (vs. any publicly owned corporation, law group bank or medical office where retaining logs for some period of time is required by US law). From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 29 18:21:50 2015 Received: (at submit) by debbugs.gnu.org; 29 Dec 2015 23:21:50 +0000 Received: from localhost ([127.0.0.1]:49035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aE3aQ-0007N8-7g for submit@debbugs.gnu.org; Tue, 29 Dec 2015 18:21:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46544) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aE3aO-0007Mu-5u for submit@debbugs.gnu.org; Tue, 29 Dec 2015 18:21:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aE3aI-0005a6-2c for submit@debbugs.gnu.org; Tue, 29 Dec 2015 18:21:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aE3aH-0005a2-VQ for submit@debbugs.gnu.org; Tue, 29 Dec 2015 18:21:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aE3aG-0002FH-TU for bug-coreutils@gnu.org; Tue, 29 Dec 2015 18:21:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aE3aC-0005Zl-SW for bug-coreutils@gnu.org; Tue, 29 Dec 2015 18:21:40 -0500 Received: from ishtar.tlinx.org ([173.164.175.65]:47171 helo=Ishtar.hs.tlinx.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aE3aC-0005Z3-Jd for bug-coreutils@gnu.org; Tue, 29 Dec 2015 18:21:36 -0500 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.hs.tlinx.org (8.14.9/8.14.4/SuSE Linux 0.8) with ESMTP id tBTNLKGX052209 for ; Tue, 29 Dec 2015 15:21:24 -0800 Message-ID: <5683156E.7060907@tlinx.org> Date: Tue, 29 Dec 2015 15:21:18 -0800 From: "L. A. Walsh" User-Agent: Thunderbird MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: Re: bug#21349: who shows no users (looking in wrong place) References: <87d1yb0xlq.fsf@jidanni.org> <20150826070250.GA29054@unix-ag.uni-kl.de> <20150826140806480686334@bob.proulx.com> <20150827074021.GA29792@unix-ag.uni-kl.de> <56805990.7090205@tlinx.org> In-Reply-To: <56805990.7090205@tlinx.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) L. A. Walsh wrote: > Erik Auerswald wrote: >> >> Linda A. Walsh noticed a similar thing: >> >>> The same thing happens on openSuSE >>> > ---- > > Looked into this a bit more and found that while > 'w' and 'who' didn't work, "last" did. > > Tracked it down to this... > from the linux programmer's manual UTMP(5) > > it says conforming implementations should look in: > FILES > /var/run/utmp > /var/log/wtmp > -------------- > > tracing who (I assume 'w' uses similar code): > # strace who|& grep /var > access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or > directory) > open("/var/run/utmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > access("/var/run/utmpx", F_OK) = -1 ENOENT (No such file or > directory) > open("/var/run/utmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or > directory) > ---- > > I.e. it isn't checking the 2nd location. > > Adding a link in the *ephemeral* (tmpfs/ramdisk) /var/run allows > it to temporarily work: > > # ln -s ../log/wtmp utmp > >> who > law pts/0 2015-11-29 09:49 (athenae) > root tty1 2015-12-22 09:26 > law pts/1 2015-12-23 16:57 (athenae) > law pts/0 2015-12-25 17:46 (athenae) > law pts/2 2015-12-25 21:42 (athenae) > law pts/4 2015-12-25 22:23 (athenae) > law pts/5 2015-12-27 08:46 (athenae) > law pts/6 2015-12-27 12:54 (athenae) > law pts/7 2015-12-27 12:59 (athenae) >> w > 13:18:22 up 108 days, 21:03, 459 users, load average: 1.33, 1.25, 0.99 > USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT > law pts/0 athenae 29Nov15 39:52m 6:38 1.18s > dovecot/imap [l > root tty1 Tue09 3days 0.28s 0.28s -bash > law pts/1 athenae Wed16 2days 0.30s 0.30s -bash > law pts/0 athenae Fri17 39:52m 6:38 1.11s -bash > law pts/2 athenae Fri21 37:18m 0.42s 0.42s -bash > law pts/4 athenae Fri22 38:52m 0.25s 0.25s -bash > law pts/5 athenae 08:46 1:39m 0.57s 0.57s -bash > law pts/6 athenae 12:54 12:44 0.37s 0.37s -bash > law pts/7 athenae 12:59 0.00s 0.29s 0.01s w >> last|grep 'still log' > law pts/7 athenae Sun Dec 27 12:59 still logged > in law pts/6 athenae Sun Dec 27 12:54 still > logged in law pts/5 athenae Sun Dec 27 08:46 > still logged in law pts/4 athenae Fri Dec 25 > 22:23 still logged in law pts/2 athenae Fri > Dec 25 21:42 still logged in law pts/0 athenae > Fri Dec 25 17:46 still logged in law pts/1 > athenae Wed Dec 23 16:57 still logged in root > tty1 Tue Dec 22 09:26 still logged in > > ---------------------------------------------- > > While creating a symlink in /var/run/utmp => /var/log/wtmp > is a per-boot, workaround to get this to work until 'w/who' are fixed, > both of them should check the linux-standard locations documented > in the manpage. > > Likely /var/log is a new location (as /var/run was made ephemeral > as part of the transition to systemd). Note, there was some > pressure by the systemd folks to also make /var/log ephemeral > as well as /tmp and /var/tmp, but those were resisted, at least > in "SUSE"...(at least for now...), since the default for systemd > is to not store or save logfiles (or coredumps) over boots. > > One can tell from design choices like that systemd is designed for > end-consumer systems, where logs that document things might > be inconvenient (vs. any publicly owned corporation, law group > bank or medical office where retaining logs for some period > of time is required by US law). > > > From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 17:04:47 2018 Received: (at 21349) by debbugs.gnu.org; 24 Oct 2018 21:04:47 +0000 Received: from localhost ([127.0.0.1]:40632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFQKc-00041a-TJ for submit@debbugs.gnu.org; Wed, 24 Oct 2018 17:04:47 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:38654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFQKZ-00041H-8M; Wed, 24 Oct 2018 17:04:43 -0400 Received: by mail-pg1-f175.google.com with SMTP id f8-v6so2911641pgq.5; Wed, 24 Oct 2018 14:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=lW9yIavDHVlpJ56HL46Qr5bg0F5jp4e+tIhs7fpLmbg=; b=Gt6AIgqOkRLz85VgdHJzgfrfYrV+Cqa0VoOwCXzWGCePvnSeUkRuXSz1MrAmn4v5WJ yJVNh8m9XrI2t5DC0evo55fliztXGoO3LjZfOnKTQ0ktyAzpovnO5Qg10ll9oCtHmEjP txtmH7qU/AKxwAMcj66yAG7ULntuZmk2CpaIwvRXpI7HXWnT8QV5ztodDiPjRWbiVjCz fLO3vGEv42eIfZXYrUVciti1GBdl8p4IwVgPjwwYuyy4bR1Cp1RgGQRqQyxu8VKXz/28 fJA7xqXG3UAyWZS2bBP2IDLU3Kqn4po9izdCuRRIhA/S0ohSepicwCDCkv9qokMQnG7y OGfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lW9yIavDHVlpJ56HL46Qr5bg0F5jp4e+tIhs7fpLmbg=; b=Lcenr2qfSCCAFAsPxUOdoo2d741JuvYH0svlnM58juttfTI6iZqWJfVFzN330pCoAm 8NYPQ7+xEX1y04asZunmqAqm9U3DSF8u6QsE+jAXJrOaYCY079qae6jDszZRJUb4tcyp dJ2K8ZhrD14OIQYXlGfOztTqGHF1bqvFMjCQ9Mjz39CiL79Gva899BBOrqeDStNxNQzj WqMhpFYUi6U0AObe9KFDPLnUgM11s/nH+QjrOnvakLxY9MBUi3uDZRBNIQ65niXQhVKW XmFL5aerL9RL3X15qs8gCTPj01Ettt3kkCvfYwQv8V4pAORXvH8a4MAUnOHXhb2bRIz3 xb+g== X-Gm-Message-State: AGRZ1gKXvR4c5RWcIUP4glcLkI4np3HJecHz8CQkKViT7MSyVBUNl6s+ FBYTkCU31JS5YHBnhFa45s1JrnGtZNs= X-Google-Smtp-Source: AJdET5dpt9sRvSugYCBrVQiWQj1JYwVK+3TYZe8XRR9AiXE+iIG5Gk004p785EFGqlqHIYvWh3hfHg== X-Received: by 2002:a63:dd0a:: with SMTP id t10-v6mr3945721pgg.379.1540415076816; Wed, 24 Oct 2018 14:04:36 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id q76-v6sm16654717pfa.18.2018.10.24.14.04.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 14:04:35 -0700 (PDT) Subject: Re: bug#21349: who shows no users nowadays on Debian To: 21349@debbugs.gnu.org References: <87d1yb0xlq.fsf@jidanni.org> <20150826070250.GA29054@unix-ag.uni-kl.de> <20150826140806480686334@bob.proulx.com> <8737z5zt9q.fsf@turtle.gmx.de> <20150826143323469832183@bob.proulx.com> From: Assaf Gordon Message-ID: Date: Wed, 24 Oct 2018 15:04:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20150826143323469832183@bob.proulx.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 21349 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 21349 notabug close 21349 stop (triaging old bugs) On 26/08/15 02:40 PM, Bob Proulx wrote: > [...] > It appears that very recently it was changed to > not log utmp. [...] > I will further take the discussion to the Debian bug log since it > doesn't have anything to do with coreutils. With no further comments in 3 years, I'm closing this as "not a bug" (at least not a coreutils bug). -assaf From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 19:45:23 2018 Received: (at 21349) by debbugs.gnu.org; 24 Oct 2018 23:45:23 +0000 Received: from localhost ([127.0.0.1]:41022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFSq3-0001ZW-GT for submit@debbugs.gnu.org; Wed, 24 Oct 2018 19:45:23 -0400 Received: from fossa.birch.relay.mailchannels.net ([23.83.209.62]:63827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFSq1-0001ZM-Lu for 21349@debbugs.gnu.org; Wed, 24 Oct 2018 19:45:22 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1202742CF7 for <21349@debbugs.gnu.org>; Wed, 24 Oct 2018 23:45:20 +0000 (UTC) Received: from pdx1-sub0-mail-a6.g.dreamhost.com (unknown [100.96.16.121]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D543C42CAB for <21349@debbugs.gnu.org>; Wed, 24 Oct 2018 23:45:19 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a6.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Wed, 24 Oct 2018 23:45:20 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Rock-Exultant: 715b008402a77b4b_1540424719935_2416053293 X-MC-Loop-Signature: 1540424719935:94322753 X-MC-Ingress-Time: 1540424719934 Received: from pdx1-sub0-mail-a6.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTP id A1EF680615 for <21349@debbugs.gnu.org>; Wed, 24 Oct 2018 16:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=ZKHptdBK/ms13IC+Z3hLQT2Lz7k=; b=G9A90ijA+xd4q NPB1KJAGNqgX/iLAVR+FAf6MdX/ImzKKjl/D3Hsb+KChKxXCollDmH4iLFdqHK8r eITiCp5yXkrhNbMZZ2BAbhIJJlpzGqJPBF+/ar/9L1/9kkaneU7FCHPHaiH+zAJn JYl308X0+/gw3JwXtt7UQUe+mpj8HE= Received: from jidanni.org (114-41-15-29.dynamic-ip.hinet.net [114.41.15.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 573AF8060D for <21349@debbugs.gnu.org>; Wed, 24 Oct 2018 16:45:19 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a6 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: 21349@debbugs.gnu.org Subject: Re: bug#21349 acknowledged by developer (Re: bug#21349: who shows no users nowadays on Debian) References: <87d1yb0xlq.fsf@jidanni.org> Date: Thu, 25 Oct 2018 07:45:16 +0800 Message-ID: <87a7n2ewoj.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrgeekgddviecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddugedrgedurdduhedrvdelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurdduhedrvdelpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepvddufeegleesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 21349 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) (Today on Debian I see $ who jidanni pts/0 2018-10-25 06:26 (:0) So maybe this is fixed.) From unknown Sat Jun 21 03:27:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 22 Nov 2018 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator