one other question please, in my suddoers file i have:
Code:
# User privilege specification
root ALL=(ALL) SETENV: ALL
www ALL=(ALL) NOPASSWD: ALL
when i want to specify the task for 'www' ,no answer
Code:
# User privilege specification
root ALL=(ALL) SETENV: ALL
www ALL=NOPASSWD: var/www/htdocs/msg.pl
my php code:
PHP Code:
<?php
$tel = $_POST['Tel'] ;
$message = $_POST['message'] ;
print $tel;
print $message;
$outpout = exec("sudo perl /var/www/htdocs/msg.pl $tel $message");
print ($outpout);
?>
any idea !