Re: Running shell script as root from Perl

2002-03-11 Thread Marcus
On Monday 11 March 2002 23:31, you wrote: > More to the point, you mean you are running X on a > unix server? ADSL scripts sounds like you are an > ISP... The opposite is true. This is for a pure desktop distribution (Lycoris Desktop/LX) to make connection easier, more transparent and simpler

Re: Running shell script as root from Perl

2002-03-11 Thread Marcus
On Monday 11 March 2002 23:50, David Gray wrote: > > "su root adsl-start". My problem is how to pass the root > > password which the user enters into the GUI to this > > command. Is it possible? > > If you turn on the setuid bit of your perl script, then it > will run as root. Thanks, that's an o

Re: Running shell script as root from Perl

2002-03-11 Thread David Gray
> "su root adsl-start". My problem is how to pass the root > password which the user enters into the GUI to this command. > Is it possible? Not sure, anyone? (you might want to look into using an expect script...) > I tried opening a perl pipe > Is there a way to pass the password with being pr

Re: Running shell script as root from Perl

2002-03-11 Thread Jonathan E. Paton
> I'm creating a GUI front-end for the adsl scripts > which need to run as root. The bash command is > usually: > GUI, in root... if the bloke maintaining all this needs a GUI then something is wrong. More to the point, you mean you are running X on a unix server? ADSL scripts sounds like you a

Running shell script as root from Perl

2002-03-11 Thread Marcus
Hi folks, I'm creating a GUI front-end for the adsl scripts which need to run as root. The bash command is usually: "su root adsl-start". My problem is how to pass the root password which the user enters into the GUI to this command. Is it possible? I tried opening a perl pipe like this which w