according root permission to www-data

Posted by user2478348 on Server Fault See other posts from Server Fault or by user2478348
Published on 2013-06-28T14:53:08Z Indexed on 2013/06/28 16:24 UTC
Read the original article Hit count: 205

Filed under:
|
|
|

i have a perl script dhcpmanip.pl which contain this line: system "hostapd /etc/hostapd-1.0/hostapd/hostapd.conf " it's a command to start hostapd!and i get this error : Insecure $ENV{PATH} while running setuid at /var/www/cgi-bin/dhcpmanip.pl line 46

After searching on the net i realised that i should accord root permission to www-data user (apache user) then i tried to modify the file /etc/sudoers by inserting this line : www-data ALL=NOPASSWD: /var/www/cgi-bin/dhcpmanip.pl but it still not working...does anyone have any idea about how solving this problem??thx alot

© Server Fault or respective owner

Related posts about apache2

Related posts about perl