shell sudo from CGI - MACOSX

paolo mazza paolo.mazza at neol.it
Mon Feb 18 08:26:38 EST 2008


Following Sarah and Ken advices, I run this script from Revolution 2.6 .1
application,  and it works fine.

 put "XXX" into tPassword
put "YYY"  into COMMAND1
  put "pw="&tPassword & cr into tScript
put "echo $pw | sudo  -S" && COMMAND1 & cr after tScript
 get shell(tScript)

I tryed the same script, in the same machine,  from the CGI .
Unfortunately I got this answer:


WARNING: Improper use of the sudo command could lead to data loss or the
deletion of important system files. Please double-check your typing when
using sudo. Type "man sudo" for more information. To proceed, enter your
password, or type Ctrl-C to abort. Password: Sorry, try again. Password:
sudo: 1 incorrect password attempt

How can I use Sudo commands from the CGI in MACOSX ? 

Thanks, Paolo Mazza

******************************************

Paolo Mazza
NEOL SRL
Società partecipata da Università di Padova
via N. Tommaseo 84
35131 - Padova (Italy)
Tel 049- 2050147 - Fax 049-7964386
www.neol.it




More information about the Use-livecode mailing list