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]

Reply via email to