From: Bryan B. <br...@bu...> - 2006-04-01 14:50:40
|
> I am using Perl to create a back-end for a browser-based interface > i am using the system(" ") statement to execute shell commands. > > i want to use Expect to automate 'su', and so that i can then execute > root-level commands from the browser itself. > You should really use sudo, you can still take advantage of Expect, but with sudo you lock down what can and cannot be ran as the web user (nobody, or apache) and you can do it without having a password stored somewhere in plain text. > is it possible to do that using Expect, or are any other additional > modules > required? > You should make sure Bundle::Expect is up to date, otherwise that should be all you need. > Thanks. > Bryan http://sourceforge.net/projects/rover |