I want to make ppp-connection under usual user (if it's safe, for now it is done under root - I'm the only user on this machine) - i think may this can help me to kill pppd when connection fails and the daemon does not control the situation...
So, i found in ifup-ppp the following line that generate error 36: exec /sbin/ppp-watch "${CONFIG##ifcfg-}" "$2" as I start it simply by typing: /etc/sysconfig/network-scripts/ifup-ppp /etc/sysconfig/network-scripts/ifcfg-mf_gprs
I checked /sbin/ppp-watch permissions, it is rwxr-xr-x - so ok. I do not understand what ${CONFIG##ifcfg-} means - I guess it hold the reason...
So want to ask You, how make it done: to make user able to make ppp-connection? Big thanks for Your precious answers.
On Wed, 2005-09-28 at 20:49 +0700, Strong wrote:
I want to make ppp-connection under usual user (if it's safe, for now it is done under root - I'm the only user on this machine)
I hope you're not running *as* root...
i think may this can help me to kill pppd when connection fails and the daemon does not control the situation...
So, i found in ifup-ppp the following line that generate error 36: exec /sbin/ppp-watch "${CONFIG##ifcfg-}" "$2" as I start it simply by typing: /etc/sysconfig/network-scripts/ifup-ppp /etc/sysconfig/network-scripts/ifcfg-mf_gprs
If you want to use command lines to go on- and off-line, do it like this:
/sbin/ifup ppp0 /sbin/ifup ppp0
Much simpler, and I'm not sure if you're calling scripts that are meant to be used directly, but those command lines are what I see being used elsewhere as *a* proper way to take an interface on- or off-line.
So want to ask You, how make it done: to make user able to make ppp-connection?
If you set up via "neat" (that's the program name for a GUI tool for configuring networks), there's an option to allow any user to bring the interface on- or off-line. It sets a USERCTL=yes parameter into the appropriate network configuration scripts, which I see replicated in at least three places:
/etc/sysconfig/networking/devices/ifcfg-pp0 /etc/sysconfig/networking/profiles/default/ifcfg-pp0 /etc/sysconfig/network-scripts/ifcfg-pp0
I don't know which are used by what.
On Wed, Sep 28, 2005 at 08:49:56PM +0700, Strong wrote:
I want to make ppp-connection under usual user (if it's safe, for now it is done under root - I'm the only user on this machine) - i think may this can help me to kill pppd when connection fails and the daemon does not control the situation...
So, i found in ifup-ppp the following line that generate error 36: exec /sbin/ppp-watch "${CONFIG##ifcfg-}" "$2" as I start it simply by typing: /etc/sysconfig/network-scripts/ifup-ppp /etc/sysconfig/network-scripts/ifcfg-mf_gprs
I checked /sbin/ppp-watch permissions, it is rwxr-xr-x - so ok. I do not understand what ${CONFIG##ifcfg-} means - I guess it hold the reason...
So want to ask You, how make it done: to make user able to make ppp-connection? Big thanks for Your precious answers.
I don't know how you got to this point but one does not start ppp communication by executing ifup-ppp directly. If yo use system-config-network to set up your ppp connection the name of the connection will , if you fill in the boxes asked for, be assigned an arbitrary name that is related to the server destination. In my case it was trinity. The connection is then started by executing: ifup trinity and stopped but executing: ifdown trinity
ifup and ifdown are in /sbin and if they are assigned SUID root anyone can start or stop the connection. Using modem-lights, a panel application will make the whole process more transparent.
Am Mi, den 28.09.2005 schrieb Strong um 15:49:
So, i found in ifup-ppp the following line that generate error 36: exec /sbin/ppp-watch "${CONFIG##ifcfg-}" "$2" as I start it simply by typing: /etc/sysconfig/network-scripts/ifup-ppp /etc/sysconfig/network-scripts/ifcfg-mf_gprs
I do not understand what ${CONFIG##ifcfg-} means - I guess it hold the reason...
man bash -> Parameter Expansion
Strong.
Alexander