> "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 prompted? If you turn on the setuid bit of your perl script, then it will run as root. Keep in mind that this is a bit risky even if you are careful -- you should take a look at the perl security manpage (type 'perldoc perlsec') at the command prompt before you try this: chmod +s script.pl Your file listing should now look like: -rwsr-xr-x if the permissions were 755 to start off with. There are some special perl variables that tell you which user you're running as (something like $> or $< for effective uid and real uid), that would probably be useful to test and make sure your script is behaving correctly. One last note, if you make any changes to your script after you do the 'chmod +s', you will have to reset it. In other words, unix turns off setuid every time you change the contents of your script. Hope that helps, -dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]