Re: php execute command on server
| From: | Greg Donald | Date: | Tue, 29 May 2007 04:13:35 +0000 |
| Subject: | Re: php execute command on server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255734@lists.php.net to get a copy of this message | ||
On 5/28/07, Jody Gugelhupf <knueffle@yahoo.com> wrote:
or does the www-data (apache) user needs special user permissions to access the devices /dev/video0 /dev/dsp ? i have no clue, is there a way to see some output? thx for the help :)You can become the user you want to test permissions for: sudo su - su - www-data On my Feisty install the www-data user does not have the permissions you require. cat /dev/dsp cat: /dev/dsp: Permission denied To access /dev/dsp the www-data user needs to be a member of the audio group. You can use usermod to add the audio group to the www-data user: usermod -G www-data,audio www-data After this I begin to get output from /dev/dsp as the www-data user. Hope that help. -- Greg Donald http://destiney.com/