This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Prob with inetutils telnetd not writing to /var/run/utmp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]