this is probably either a RTFM-type of question or i'm simply too stupid
to see the obvious; in spite of all that, still desparate after nights of
googling, i dare to ask:
basically, i share my PC and want all users to use their own internet
account. simple? no.
i used to have pppd started during the boot process; my username/pw are in
chap-secrets, i use a pptp-type adsl-connection. pppd has the "demand"
feature on, so i'm not online as long as i don't need to be.
what i want to change now is that the ISP-account being used when actually
dialling in depends on the user who's logged in and initiates the process.
the famous ~/.ppprc doesnt help here: pppd would read it when it's being
started, and that's far too early: no user logged in then.
i thought there'd be some rarely used feature that makes chap-secrets map
its lines to a local username provided; that would be the most obvious
solution, but it doenst exist. then i hoped pppd could be told to re-read
the config-files before actually connecting - nope. (right?)
as far as i see it now, there are two solutions:
a) start pppd in each and every script that might be called when a user
logs in. ugly. it could be a shell login, it could be GDM, it could be a
session for any of the 4 WM we use, could be su/sudo... i want to stay
flexible and have only *one* point to change things if necessary.
b)forget the dream and use one of the tools floating around (kppp...) -
that's even worse, because it would probably mean that the setup works
only in selected window managers / desktop environments
does any of you ppl out there know a good, reliable way of handling this?
i cannot believe that i am the only person who shares his PC with others
and wants all of them to use their own internet account.... ;-)
thx!
|