Sample Header Ad - 728x90

Setting www-data (lighttpd) as sudoer not working

0 votes
1 answer
1764 views
I have installed lighttpd with fast-cgi on the raspberry pi. When running a python script that requires root priveleges, I get the following error: > RuntimeError: No access to /dev/mem. Try running as root! Traceback > (most recent call last): File "/var/www/index.py", line 134, in > GPIO.setup(17, GPIO.OUT);#enable A RuntimeError: No access to > /dev/mem. Try running as root! I have added www-data as a sudoer using visudo and "sudo usermod -a -G sudo www-data", but it did not work. How can I give lighttpd root priveleges? Security is NOT important as this is a personal project.
Asked by yogur (101 rep)
Feb 11, 2016, 11:06 PM
Last activity: Jan 4, 2023, 06:15 PM