Must be logged in as root to dial my modem

Friends, i have a script file that establishes a ppp connection.  It works very well, but i have to be logged in as root.

When i try the script logged in as a simple mortal man, i get an error message saying "can't find ppp".
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oizagasAuthor Commented:
Adjusted points to 15
are you using absolute or relative paths? How does the script look? What are the permissions set like for all components?
You should set it up for demand dialing. As soon as a packet is sent, pppd will automatically dial to the ISP.

 Here's the URL where you'll find a copy of my Demand-Dialing-HOWTO:
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

On some systems you need pppd to be run as root. You can allow other users to run pppd but using the setuid bit.

The other problem could be with the path enviroment being different do

echo $PATH

as both user & root and compare.
Giving processes the suid bit isn't safe. The demand dialing processed that is full managed by a daemonized pppd is the best solution for allowing normal users to access the Internet. Not to mention it's pretty comfortable to access the Internet with demand dialing.
I would set a special group to own the modem then put yourself in it. that should helps.

Second, using 'sudo' package to allow a specified ordinary user/group to do a specified subset of things only root can do. It should be safer than setuid.
Or, you can do a chmod +s `which pppd` as root. this will give the ppp daemon the root privileges when a normal user runs it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.