i had ( or still have ) the same problem. Im running asterisk as asterisk:asterisk, but dont know why, the new voicemails are saved as root:root with 700 permissions, so i made a quick workaround, i added the following line in sudoers file:

%lighttpd ALL=(root)NOPASSWD: /usr/bin/chmod -R 755 /var/spool/asterisk/voicemail/

dont need to say im using lighttpd instead of apache. Then when i want to read voicemail i execute from php the command to change the permissions in /var/spool/

what do you think of that approach? is ugly yes, but any security wholes?

best regards

On 11/7/05, Ryan Amos <[EMAIL PROTECTED]> wrote:
Use group permissions. Add the apache user to the asterisk group and
give the group the appropriate read and/or write access. IMO this is the
easiest way to get around the apache permissions thing, and probably the
Right Way (tm)

-Ryan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto: [EMAIL PROTECTED]] On Behalf Of amaury
BOSSE
Sent: Monday, November 07, 2005 12:44 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Change Asterisk User

Thanks for your answer,
I am working on Debian Sarge but I have compiled Astersik 1.0.9 myself
without .deb Packages.
I need to access to voicemail and sound files from my web-interface (php
and cgi/perl) but I can't change Apache user because of others
applications.
Asterisk creates files under Asterisk user and I have to access them
from www-data user.
Do you have other solution? I have tried using sudo but it doesn't seem
to work.

Regards,
Amaury


_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to