Dante Sanchez wrote:
Hi,


Keith Howell-2 wrote:
  
On Fri, 04 Apr 2008 20:48:05 -0700, Bill Beech (NJ7P) wrote
    
Has anyone gotten boa to run as root?
Has anyone ever succeeded in building a web-interfaced controller 
from a gumstix?  I have scripts that work properly, when run as root,
 but will not operate as www-data, which is the boa user.
      
Running scripts as root is a "bad idea". This is how things get hacked
and/or
destroyed.

The issue you are having is one of permissions. You need to look at your
script and see what it is trying to access and then set the 'group'
permissions for those files to the www-data user.

    

 I found this old thread while looking for a solution to the same problem. 
I want to run ifdown/ifup from a web page using a perl script. Boa won't
start if I set User/Group to 0, and setting the suid bit on a script still
won't let any non-root user run ifdown/ifup.

All I want to do is reset the wireless connection (wlan0) after updating the
interfaces/wpa_supplicant.conf files.  Maybe someone has already done this
in a different way?

Thanks,

Dante
  

I have had to do this at some time.  Se attached patch for boa in oe.


Cheers

Grahame Jordan