From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 15:32:21 2011 Received: (at submit) by debbugs.gnu.org; 10 May 2011 19:32:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJsfM-00087M-Ia for submit@debbugs.gnu.org; Tue, 10 May 2011 15:32:21 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJsci-00082z-KV for submit@debbugs.gnu.org; Tue, 10 May 2011 15:29:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJscc-0006L4-9Q for submit@debbugs.gnu.org; Tue, 10 May 2011 15:29:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:45203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJscc-0006L0-7o for submit@debbugs.gnu.org; Tue, 10 May 2011 15:29:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:52600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJscb-0004vS-ER for bug-coreutils@gnu.org; Tue, 10 May 2011 15:29:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJsca-0006Km-HS for bug-coreutils@gnu.org; Tue, 10 May 2011 15:29:29 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:39936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJsca-0006Kb-BJ for bug-coreutils@gnu.org; Tue, 10 May 2011 15:29:28 -0400 Received: by gyd8 with SMTP id 8so2828958gyd.0 for ; Tue, 10 May 2011 12:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=cCuRdn7ryPuFqe1nyPYjpHS0lnq+G9N3G42+XpWbxSY=; b=l3YA0oITFmJMzzTLftZFEXgMW7Hclxv2yAL0Szy75RyH+exklDo7oqdlLOM6zRVnMF wIQ9PHNmkU6RxVHkk9cU6g8F1oFmrrf6IbcRXtx/C7e22X8V3Jc6RTt4ch+8Z3avVGM4 OTYYJrnVj1f0IwXiag1DtlaPTQliLIMNN0EQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DTsJtgYXlogN5jtDzjEejMIbUL0l28i/YkVTyUQJqGF3TBk+IVLjbEEikNNwSRjg8z WMBNNqOb5BWsakYZopqcGt6/+Ig0B1d9a3/LaI+u2nVsYUAdGVbxC2qXSzE2MwUrxSW8 6l5H7+/Mbr8ZZqG40D7t1FIvJrqsJ2YdLt0XM= MIME-Version: 1.0 Received: by 10.236.153.130 with SMTP id f2mr9484210yhk.281.1305055767403; Tue, 10 May 2011 12:29:27 -0700 (PDT) Received: by 10.147.34.15 with HTTP; Tue, 10 May 2011 12:29:27 -0700 (PDT) Date: Tue, 10 May 2011 15:29:27 -0400 Message-ID: Subject: 'who' command bug From: ding bat To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=20cf303ea6746d9e3504a2f0f9d7 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 10 May 2011 15:32:19 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --20cf303ea6746d9e3504a2f0f9d7 Content-Type: text/plain; charset=ISO-8859-1 I was using Who to list all users connected to pptpd vpn server with maverick 10.10. I put natty on the computer and now the who command does not list out the vpn users. It only seems to list out local logged in user. any thoughts,.... this issue is killing me..... I can still do 'last |grep ppp' and get joy, but 'w' and 'who' were very nice. -danny --20cf303ea6746d9e3504a2f0f9d7 Content-Type: text/html; charset=ISO-8859-1 I was using Who to list all users connected to pptpd vpn server with maverick 10.10.
I put natty on the computer and now the who command does not list out the vpn users. It only seems to list out local logged in user.
any thoughts,.... this issue is killing me.....
I can still do 'last |grep ppp' and get joy, but 'w' and 'who' were very nice.

-danny
--20cf303ea6746d9e3504a2f0f9d7-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 19:05:42 2011 Received: (at 8643) by debbugs.gnu.org; 10 May 2011 23:05:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJvzq-0004Zn-37 for submit@debbugs.gnu.org; Tue, 10 May 2011 19:05:42 -0400 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJvzo-0004Zc-3u for 8643@debbugs.gnu.org; Tue, 10 May 2011 19:05:41 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 1E9D721310; Tue, 10 May 2011 17:05:34 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id D94C53E748; Tue, 10 May 2011 17:05:33 -0600 (MDT) Date: Tue, 10 May 2011 17:05:33 -0600 From: Bob Proulx To: ding bat Subject: Re: bug#8643: 'who' command bug Message-ID: <20110510230533.GA32269@hysteria.proulx.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 8643 Cc: 8643@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) ding bat wrote: > I was using Who to list all users connected to pptpd vpn server with > maverick 10.10. > I put natty on the computer and now the who command does not list out the > vpn users. It only seems to list out local logged in user. > any thoughts,.... this issue is killing me..... > I can still do 'last |grep ppp' and get joy, but 'w' and 'who' were very > nice. Thanks for reporting this and trying to improve the system. That is great! However this isn't a bug in who. We are going to need to find the particular program and then report the problem there. Let me explain... The 'who' command lists out data from the utmp file (/var/run/utmp on most GNU/Linux systems). It is simply the messenger that is reporting what has been logged there. If the data is logged then it reports it. If it is not logged then it doesn't have anything to report. Being just the messenger it often gets the blame when other programs don't log data there but it isn't the fault of the who program. The data about who is logged into a system is logged by programs that log users into the system. For example traditionally the /bin/login program would write this information there. But rarely do users use /bin/login anymore. These days it is usually ssh logins from the network or xdm/gdm/kdm from the console. You are probably talking about gdm logins from the console on your system. In my case on my system I log in using xdm and then start several xterms. Each xterm logs utmp information when it is started. There is an xterm option to prevent this logging but it is on by default. Whatever is logged is reported by the who command (and others such as finger and w). Please try starting an xterm and I am sure you will see that xterm logs this information to the utmp file and later this is reported by the who command. At various times people report the same issue that you are reporting, that some programs log this data and that other programs do not log this data. At other times people report the opposite case as a bug that they *do* log this data and that it creates too much noise. They claim that all of the terminals by one user are really just one user login. I imagine you are caught in the latter case having caused the opposite change. I am not an Ubuntu user and do not have a system to test with and so I do not know what programs you would be running when you log in with Ubuntu's Natty. You will need to look at your system and determine what login manager you are using. This is probably gdm but might be gdm3 but possibly one of several others. You will need to determine what terminal program you are using. This is probably gnome-terminal but possibly one of several others. Both of those programs either should (or should not) be logging user login information to utmp. I imagine that you will want to look closely at the gnome-terminal documentation and news entries to see if it has purposefully stopped logging to utmp. (Assuming that gnome-terminal is what you are using.) There may be an option to enable it again. If not then I imagine you will want to file a bug report with them about it. In the meantime since this isn't a bug in 'who' I am going to mark it as not a bug and then close it so that the long list of bugs in the bug tracker doesn't get overwhelmed. Please don't take the fact that the bug is closed to mean that we don't want any more discussion. The opposite is true. If possible please report back to us on what you find. Please feel free to keep posting followups. It will continue to be tracked in the bug log. This will help others who read through it later. At any time the bug can be opened again if needed. Thanks, Bob From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 19:07:08 2011 Received: (at control) by debbugs.gnu.org; 10 May 2011 23:07:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJw1D-0004c2-O2 for submit@debbugs.gnu.org; Tue, 10 May 2011 19:07:07 -0400 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJw1B-0004bZ-Fh for control@debbugs.gnu.org; Tue, 10 May 2011 19:07:05 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 1470B21310 for ; Tue, 10 May 2011 17:07:00 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id F2FF23E748; Tue, 10 May 2011 17:06:59 -0600 (MDT) Date: Tue, 10 May 2011 17:06:59 -0600 From: Bob Proulx To: control@debbugs.gnu.org Subject: tag and close bug Message-ID: <20110510230659.GA4659@hysteria.proulx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) tag 8643 + notabug close 8643 thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 19:15:09 2011 Received: (at 8643) by debbugs.gnu.org; 10 May 2011 23:15:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QJw8y-0004ws-VT for submit@debbugs.gnu.org; Tue, 10 May 2011 19:15:09 -0400 Received: from c-67-162-90-113.hsd1.in.comcast.net ([67.162.90.113] helo=kosh.dhis.org) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QJw8x-0004mZ-BB for 8643@debbugs.gnu.org; Tue, 10 May 2011 19:15:07 -0400 Received: (qmail 8093 invoked by uid 1000); 10 May 2011 23:15:01 -0000 Message-ID: <20110510231501.8092.qmail@kosh.dhis.org> From: "Alan Curry" Subject: Re: bug#8643: 'who' command bug To: dingbat.trash@gmail.com (ding bat) Date: Tue, 10 May 2011 18:15:01 -0500 (GMT+5) In-Reply-To: <20110510230533.GA32269@hysteria.proulx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: 8643 Cc: 8643@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.8 (/) Bob Proulx writes: > > ding bat wrote: > > I was using Who to list all users connected to pptpd vpn server with > > maverick 10.10. > > I put natty on the computer and now the who command does not list out the > > vpn users. It only seems to list out local logged in user. > > any thoughts,.... this issue is killing me..... > > I can still do 'last |grep ppp' and get joy, but 'w' and 'who' were very > > nice. [...] > I am not an Ubuntu user and do not have a system to test with and so I > do not know what programs you would be running when you log in with > Ubuntu's Natty. You will need to look at your system and determine > what login manager you are using. This is probably gdm but might be > gdm3 but possibly one of several others. You will need to determine > what terminal program you are using. This is probably gnome-terminal > but possibly one of several others. Both of those programs either > should (or should not) be logging user login information to utmp. Bob apparently doesn't know what pptpd is. Or what "VPN" means. Or what PPP is. Or didn't read very carefully. But he's probably right anyway. The bug is more likely to be in pppd than anywhere else. It's weird that it would write to wtmp (for last) but not utmp (for who). Check the config files for recent changes, and if you can't find the cause, find someplace that gives help with pppd. An strace of the pppd process during connection setup could be enlightening. -- Alan Curry From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 16:56:18 2011 Received: (at 8643) by debbugs.gnu.org; 11 May 2011 20:56:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKGS9-0003Ap-C6 for submit@debbugs.gnu.org; Wed, 11 May 2011 16:56:17 -0400 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKGS7-0003Aa-7e for 8643@debbugs.gnu.org; Wed, 11 May 2011 16:56:16 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 57B3821311; Wed, 11 May 2011 14:56:08 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 219272DC60; Wed, 11 May 2011 14:56:08 -0600 (MDT) Date: Wed, 11 May 2011 14:56:08 -0600 From: Bob Proulx To: ding bat Subject: Re: bug#8643: 'who' command bug Message-ID: <20110511205608.GA19569@hysteria.proulx.com> References: <20110510231501.8092.qmail@kosh.dhis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110510231501.8092.qmail@kosh.dhis.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 8643 Cc: 8643@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) Alan Curry wrote: > Bob Proulx writes: > > ding bat wrote: > > > I was using Who to list all users connected to pptpd vpn server with > > > maverick 10.10. > > > I put natty on the computer and now the who command does not list out the > > > vpn users. It only seems to list out local logged in user. > > > any thoughts,.... this issue is killing me..... > > > I can still do 'last |grep ppp' and get joy, but 'w' and 'who' were very > > > nice. > [...] > > I am not an Ubuntu user and do not have a system to test with and so I > > do not know what programs you would be running when you log in with > > Ubuntu's Natty. You will need to look at your system and determine > > what login manager you are using. This is probably gdm but might be > > gdm3 but possibly one of several others. You will need to determine > > what terminal program you are using. This is probably gnome-terminal > > but possibly one of several others. Both of those programs either > > should (or should not) be logging user login information to utmp. > > Bob apparently doesn't know what pptpd is. Or what "VPN" means. Or what PPP > is. Or didn't read very carefully. Or all of the above. Or some of the above. Not being a MS windows user I have never used, nor needed to use, 'pptpd'. I am very familiar with VPNs on Unix and GNU systems and have set up and maintain several. I am using a VPN at this moment to answer this message. But I admit I didn't read that message carefully enough and missed the comment that pptpd wasn't logging to utmp anymore. I had assumed that it was another report that terminals weren't logging users and that was a wrong assumption. Thanks for catching that item. > But he's probably right anyway. Figher pilots have an old say, "It is better to be lucky than good." :-) > The bug is more likely to be in pppd than anywhere else. It's weird > that it would write to wtmp (for last) but not utmp (for who). Check > the config files for recent changes, and if you can't find the > cause, find someplace that gives help with pppd. > > An strace of the pppd process during connection setup could be enlightening. Agreed. ding bat wrote: > First, many thanks for such a great response. to be honest, I did not > expect anyone to answer, or care about such a topic. But of course! It is a friendly development group. > Anyway, I did some poking around and found out that pptpd (poptop vpn > server) is likely logging users into the wtmp. I know that the users > are specified in the Chaps-Secrets file and that they are logged in > the wtmp upon login. I know that the 'last' command can show that wtmp > file, and in my case, it does!!. I do 'last |grep ppp' and it shows > the users and when they connected and disconnected to the vpn server. I agree with Alan. It is odd that it logs to wtmp but not utmp. > The thing is, I thought the 'who' and the 'w' command also pull from > the wtmp file, but I guess they dont??? perhaps they are pulling from > the utmp file. > > if this is true, what is the difference between the utmp and the wtmp > file. The utmp file logs currently logged in users. The file contains records for each user. If a user logs out then the entry is removed. The wtmp file logs the history of who logged in and who logged out. Instead of removing an entry it records that the user logged out. All things working okay then subtracting one from the other should yield the same information as in the utmp file. As long as a power failure or system bug doesn't prevent accurate accounting then this will be correct and in sync. But not if a program logged a user in but then crashes that user may not be recorded as having been logged out The utmp database will still show the user logged in.. Later when the tty is used again by another login from another user then that record in the utmp file will be overwritten with the updated information and corrected. But until then it will be out of sync. Looking at the man page for utmp will give you the details. man utmp > And maybe you can speculate why pptpd/poptop is only logging in > the wtmp to show in 'last' but not logging in utmp to NOT show in > 'who' or 'w'. I could not find any settings to tweek and the only > reference to any of the logs was in the file: "/etc/pptpd.conf" couple > lines down where it specifies "logwtmp" Not sure. Verify that the utmp file is writable. These files are usually in different directories and may have different user and group permissions. On my system they are both root:utmp. /var/run/utmp /var/log/wtmp If pptpd can't write to utmp but can write to wtmp then that would be one explanation. Bob From unknown Sat Jun 21 10:27:06 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, 09 Jun 2011 11:24:03 +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