You will also need to change a file in Asterisk core, to make it right, I think it was file.c.




Adam Fineberg wrote:

> -------- Original Message --------
> Subject: [Asterisk-Users] Voicemail questions
> Date: Tue, 9 Nov 2004 15:16:40 -0500
> From: Chris Armour <[EMAIL PROTECTED]>
> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
>
> More Newbie Questions! This time about Comedian Mail:
>
> 1. I have the vmail.cgi script running and it looks great. Is there a permanent fix to the permissions problem on the messages? Right now I
> have to "chmod 777" the voicemail directory before I can listen to messages, which is obviously not workable for normal use.
>


Attached is a patch I made to app_voicemail.c that will set the owner, group and perms of all files and directories that are created so that vmail.cgi can run as user/group apache without setuid on vmail.cgi. The owner/group/perms are configurable in some static variables at the top so if you need them to change, you only need to change them there. Hope this helps.

Adam Fineberg


_______________________________________________ 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