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

hi all,
I'm calling perl script from php code;some commands in the script need root user to be executed but i’m 'www' user.
For having root privilege i’ve modify the sudoers file ( incomment the line %wheel ALL=(ALL) NOPASSWD:ALL) and i’ve added the user 'www' to the group ‘wheel’
and next i've called the command but without success
PHP Code:
 exec("sudo perl /var/www/htdocs/msg.pl $tel $message "); 
Please, what am I doing wrong or what Have I left undone.
thank you in advance
Reply With Quote