Re: php execute command on server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/28/07, Jody Gugelhupf <knueffle@xxxxxxxxx> 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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux