Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "Cygwin-Mailing-List" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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