[wellylug] Have a script prompt for root password

Bruce Hoult bruce at hoult.org
Sat Aug 2 11:10:16 NZST 2008


On Sat, Aug 2, 2008 at 11:04 AM, Nathan Cook <nathan at cook.net.nz> wrote:
> 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.

Just put "sudo" in front of the command(s) that require root privileges.

And look up the config options for sudo.



More information about the wellylug mailing list