Not Another AutoPPP question
Gert Doering (gert@greenie.muc.de)
Mon, 6 Jul 1998 10:05:01 +0200
Hi,
Alex Garner wrote:
> At 23:53 5/07/98 , you wrote:
> >> we have just got AutoPPP going on our system and would like to get it
> >> loggin the username into the utmp
> >
> >Hmmm. Basically, "login" should make pppd put the user name into utmp.
[..]
> [root@vodka /root]# w
> 11:52am up 5 days, 1:01, 15 users, load average: 1.10, 1.08, 1.02
> USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
> /AutoPPP ttyE0 31200 9:12am 2:40m 0.00s ? -
> /AutoPPP ttyE1 26400 10:47am 1:05m 0.00s ? -
> /AutoPPP ttyE2 26400 10:33am 1:19m 0.00s ? -
> /AutoPPP ttyE3 28800 7:36am 4:16m 0.00s ? -
> /AutoPPP ttyE4 26400 9:12am 2:40m 0.00s ? -
> /AutoPPP ttyE5 26400 10:57am 55:17 0.00s ? -
Replace the "@" in the AutoPPP line in login.config with a "-". You don't
want "/AutoPPP/" to be put into the utmp/wtmp files.
[..]
> programme mgetty is passing info too, I wasn't going to bring it up. But as
> the two versions of mgetty and pppd I use come with redhat 5.1 I e-mailed
> the redhat people and mentioned it to them. In fact I suspect that the
> problem is with the fact that utmp and wtmp are addressed differently as of
> redhat 5.0, and pppd doesn't know about it yet.
Maybe, yes.
> One thing I do notice though is that two entries are written to utmp...
>
> 5aa ttyE6 Mon Jul 6 11:07 still logged in
> /AutoPPP ttyE6 31200 Mon Jul 6 11:06 - 11:07 (00:00)
> hocking ttyE11 Mon Jul 6 11:03 still logged in
> /AutoPPP ttyE11 28800 Mon Jul 6 11:03 - 11:03 (00:00)
Sounds as if PPP actually *does* write an entry. So just make mgetty stop
doing it (remove the "@"), maybe it will work then.
[..]
> That reminds me; Gert, I assme you knew about the changes to wtmp and utmp
> logging? As I thought that pppd does the entries, not mgetty I guess it's
> somewhat academic.
I have no idea whether anything was changed, and if yes, what. There are
standard functions for this (updwtmp, pututent), so a user program should
not need to care.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de