Thread: Apache
View Single Post
  #7   (View Single Post)  
Old 25th February 2010
mehaj mehaj is offline
Port Guard
 
Join Date: Feb 2010
Posts: 17
Default

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 !
Reply With Quote