>Is it possible to start and stop PPP as a normal user? I tried creating
>a script like this:
>#!/bin/sh
>exec /etc/sysconfig/network-scripts/ifup
>/etc/sysconfig/network-scripts/ifcfg-ppp0
>and called it start-ppp; and another one called stop-ppp with "ifdown"
>instead of "ifup". So far, so good, as long as you're root, but appar-
>ently you can't chmod 4755 this thing and then run it as a user.
>*Is* there a way to do this?
> - Thomas.
>--
>NOTE: The address in the message header is bogus. This is a deliberate
I don't know if this answers your question or not, but to stop ppp, I just
kill the pppd process. To do this I wrote a small scriptthat does the
business. The general idea is to pipe ps -aux through grep and grep for pppd.
Then awk the process number. At this point you will get 2 pid (one for the
pppd process and one for your 'grep pppd' process). awk that again and get the
first pid. Then just kill it. As you started this process as yourself, you can
kill it yourself.
If you'r script writing skills are kinda rusty let me know and I will send you
my script (I'm currently in Windoze so cannot get to that script).
Hope this helps....
Masroor Farooqi
Keep the Linux spirit alive !!!