I am looking for an easy way to avoid being in root mode to dial ppp. I
understand that earlier versions of ppp do not have this problem, but I guess
I am looking for a 'quick and dirty' solution...since I'm the only user on my
machine, security isn't that big of a deal.
I have a script called 'ppplink-up' that calls chat and pppd to do the work,
and a 'ppplink-down' script to stop the connection. What I then did was
create a sort of a wrapper script called 'startppp' with a line like:
su root -c ppplink-up
in it. So what I do is just type startppp, and type my root password when it
prompts for it. What I want to be able to do is to avoid the hassle of typing
the password in everytime, especially since I want to create a menu option to
start up PPP which won't work as long as I have to type a password.
What I tried doing is using echo to send my password to the script, doing
su root -c ppplink-up < echo password
but re-directing the ouput of echo various ways didn't work.
Any ideas? or should i just go hunt down and mess with the older version of