delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/18/17:55:22

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Sent: 18 Jan 2001 22:22:28 GMT
From: "Kevin Wright" <kevin AT wright DOT org>
To: "Cygwin-Mailing-List" <cygwin AT cygwin DOT com>
Subject: Prob with inetutils telnetd not writing to /var/run/utmp
Date: Thu, 18 Jan 2001 13:49:01 -0700
Message-ID: <005e01c08190$16954950$e088f726@holstein-mobile.ASPECTDV.COM>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
Importance: Normal

Hello,

I recently upgraded to Cygwin 1.1.7 (from 1.1.4) and am happy that 
the shellutils who utility now reports the current users logged in. 
It might have been working for a long time but I personally just got 
it working now. 

Here's the current output of who:

$ who
kwright  tty0     Jan 17 19:00 (holstein-mobile.ASPECTDV.COM)
kwright  tty1     Jan 17 17:53 (holstein-mobile.ASPECTDV.COM)
kwright  tty2     Jan 17 18:31 (holstein-mobile.ASPECTDV.COM)

According to the output from strace, who derives it's info from
/var/run/utmp. However, if someone logs in remotely via telnet,
/var/log/wtmp gets updated. To find out who is logged in remotely,
I have to pass /var/log/wtmp as a parameter to who, thus:


$ who /var/log/wtmp
[output deleted]
kwright  tty2     Jan 17 16:54 (holstein-kw)
kwright  tty3     Jan 17 17:22 (holstein-mobile.ASPECTDV.COM)
kwright  tty1     Jan 17 17:53 (holstein-mobile.ASPECTDV.COM)
kwright  tty2     Jan 17 18:31 (holstein-mobile.ASPECTDV.COM)
kwright  tty0     Jan 17 19:00 (holstein-mobile.ASPECTDV.COM)

This not only gives you the list of current users but also a
list of past logins, which means I can't tell if the who
is still logged in. (other than checking the current number 
of in.telnetd processes)

My question is, is this expected behavior or should telnetd also
be writing to /var/run/utmp? I looked at the source and found 
references to utmp but they are ifdeffed and I couldn't figure
out whether it is supposed to be used or not. 

As I've already said in other email, I'm extremely happy with 
the progress made with inetutils and I'm just trying to understand
the process.

TIA,

--Kevin Wright

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019