[wellylug] Have a script prompt for root password
Nathan Cook
nathan at cook.net.nz
Sat Aug 2 11:04:27 NZST 2008
Hi,
I've created a small script so that I can connect to the internet with one
of the new Telecom TSticks. The script needs to be run as root though.
What I want to do is to be able to run the script as a user and then for it
to prompt for the root user password.
Here's the script:
*#!/bin/sh
cd /etc/ppp/peers
pppd call cdma
*
What can I add to make it work the way I want?
Is it even a good idea to have this run as root, would it be better to allow
the user to run pppd?
Any other ideas to make this more user friendly perhaps?
For those interested in getting this working for themselves here's what I
put together to get it working:
http://nznathan.blogspot.com/2008/08/telecom-tstick-on-opensuse-11.html
Cheers
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20080802/42243b4f/attachment.htm
More information about the wellylug
mailing list