Dear Nick,
That make sense. There is actually auth-up and auth-down script files with my
distribution of RedHat 5.1.
The reason why I want to have a real user name in utmp is because I want to track
online
time and traffic of users and ACUA (the program I want to use) needs a real name there
otherwise it does not know who to charge or actually does not charge anyone.
AutoPPP is actually putting a name (a_ppp) in the utmp file (or is it the wtmp file.
Which one is read by the "last" command?).
So what would be the harm in putting a real user name in there instead. In fact who
cares, if we know that /AutoPPP has acticated this interface. Don't we want to know who
is using the link?
If you have any suggestion on what the scripts could look like, please advise. Your
help
is certainly appreciated.
Regards
Bernhard
Nick Phillips wrote:
> Bernhard L�der wrote:
>
> > So how can I get the real user name to enter in the utmp file?
>
> Worth considering first "Why should the user name be in the utmp file?"
> The user isn't logged in to your machine; they are using a network
> interface.
>
> The mgetty FAQ has a section on this:
>
> > Scenario 1: mgetty recognizes AutoPPP:
> > 03/11 12:06:31 yS1 match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
> > 03/11 12:06:31 yS1 login: utmp entry: ppp
> > 03/11 12:06:31 yS1 looking for utmp entry... (my PID: 5313)
> > 03/11 12:06:31 yS1 utmp + wtmp entry made
> > 03/11 12:06:31 yS1 calling login: cmd='/usr/sbin/pppd', argv[]='pppd...
> > 03/11 12:06:31 ##### data dev=ttyS1, pid=5313, caller=none, conn='LAPM', name=''
> > At this point, mgetty executes pppd and has nothing to do with
> > connection failures, failing authorization, the police banging at your
> > door or anything else. Check pppd's logs for any trouble.
> >
> > If you use "who" and the only thing you can see is "a_ppp", go check
> > your pppd sources. It's pppd's job to forge a utmp entry
>
> The reason it's pppd's job is that mgetty isn't doing the authorisation;
> pppd is. Hence mgetty doesn't know who's coming in.
>
> If you can't work all that out, and want a log of who's on, I suggest
> you write a pair of scripts which log these details somewhere. The
> scripts should be called /etc/ppp/auth-up and /etc/ppp/auth-down. The
> pppd man page documents the parameters that pppd will pass to the
> scripts. If you really really want to, you could use those scripts (I
> guess there's no real reason why they have to be scripts, they could be
> C programs if you prefer) to play with the utmp file (read +
> *understand* "man utmp" before you do).
>
> --
> Nick Phillips ([EMAIL PROTECTED])
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]