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