[Asterisk-Users] vmail.cgi -> .php?

Ryan Courtnage ryan at itsacanada.com
Mon Mar 1 16:53:59 MST 2004


>> The CGI runs in a separate process, with special permissions.

How is this accomplished?  By suEXEC?

> You could also setup asterisk to save the vm files as another user.
> Michael

This would be the best option IMHO. What is required to do this?

Regardless of whether I use vmail.cgi or a php, using chown or chmod on 
the voicemail directory only temporarily solves the permissions 
problem.  Any new voicemails that are saved to the system are saved 
under my * userid (root in my current environment).


FYI - the original problems I was having with vmail.cgi is now 
resolved.  The script was not properly handling voicemail contexts 
(aside from 'default').  The changes I made to get it working are 
posted here:
http://itsacanada.com/vmail.html

Thx
Ryan


On 1-Mar-04, at 9:34 AM, ast at uc9.net wrote:

> On Mon, 1 Mar 2004, Tilghman Lesher wrote:
>
>> On Sunday 29 February 2004 15:15, Ryan Courtnage wrote:
>>> Has anyone attempted to convert vmail.cgi to php?
>>> I'll take it in any stage of development.
>>>
>>> This, or any other php interface to VM, would be greatly
>>> appreciated!
>>
>> Ain't gonna work unless your Apache server runs as root or
>> as the same user Asterisk runs as.  This is due to the fact that
>> PHP runs within the same process as Apache, and Unix/Linux
>> prevents privilege escalation, for security reasons.  The CGI runs
>> in a separate process, with special permissions.
>>
>> -Tilghman
>>
>
> You could also setup asterisk to save the vm files as another user.
> Michael
>
>
>
>
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list