[ubuntu] add www user into sudoers list and service command

view full story

http://ubuntuforums.org – Hi, i am developing a little web page that gives statistical information from a service. Its web page is for an application called Airtime . In order to acquire the information from the CLI, i have to run the command " Code: sudo airtime-media-monitor status ". and provide my root password I however did manage to manually add the "www-data" user ( the account apache is using) using the "visudo" by adding Code: www-data localhost=nopasswd: /usr/bin/service i wanted to write a script to automate the above process, i also wanted the www user to have (Hardware)