Re: DSL Verbindung richtig beenden?

From: Heino Tiedemann <rotkaps_spam_trap(at)gmx.de>
Date: Mon, 16 Aug 2004 17:46:38 +0200

Patrick Hess <phess(at)swissinfo.org> wrote:

> Hallo,
>
> Heino Tiedemann schrieb:
>> Gibts nicht einen einfachen Weg, unter FreeBSD, einen
>> Einwahlrechner zu betreiben, der keine Standleitung hat?
>> Verbindung aufbauen, Verbindung trennen, ganz simpel?
>
> Starten:
>
> ppp -foreground $Profil
>
> Beenden:
>
> killall -HUP ppp

Womit wir wieder bei meinem ursprungsposting wären ;-)

,----
|
| So stelle ich die Verbindung her:
|
| ,----
| | su root -c "ppp -ddial tdsl"
| `----
|
|
| So beende ich sie.
|
| ,----
| | su root -c "killall ppp"
| `----
|
| Frage: Ist das so richtig, oder gibts einen eleganteren Weg zum
| beenden?
`----

> Das Ganze habe ich für meine klickenden Bekannten hinter einem
> KMDR-Dialog versteckt: http://phess.de.vu/Einwahl.png
> Klick auf den einen der Buttons startet jeweils den passenden der
> beiden o.g. Befehle.

Klasse idee!

> Voraussetzung: Du hast
>
> allow users *
>
> in der ppp.conf und die Benutzer, die einwählen dürfen, gehören der
> Gruppe network an. Einwahl damit absolut DAU-kompatibel ;-)
> Vielleicht eine Anregung für dich, sowas nachzubauen.

Eine Frage:

Was bedeutet denn die erste Zeile in diesem Ausschnitt der Manpage:

,----[ man ppp ]
| allow user Xo [s]
|
| logname ... By default, only user id 0 is allowed access to ppp . If
| this command is used, all of the listed users are allowed access to
| the section in which the ``allow users'' command is found. The
| `default' section is always checked first (even though it is only ever
| automatically loaded at startup). ``allow users'' commands are
| cumulative in a given section, but users allowed in any given section
| override users allowed in the default section, so it's possible to
| allow users access to everything except a given label by specifying
| default users in the `default' section, and then specifying a new user
| list for that label.
|
| If user `*' is specified, access is allowed to all users.
`----

"allow user Xo [s]" -> Was bedeutet das 'Xo', das was '[s]'?!

Heino

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 16 Aug 2004 - 17:49:37 CEST

search this site