[Asterisk-Users] voicemail file access problems

Paulo Mannheimer paulohm at instant.com.br
Wed Jul 30 14:52:24 MST 2003


This is getting too confusing for me ;-(

Could someone summarize what are the steps necessary to make vmail.cgi
work on a system? Something like this:

1) copy vmail.cgi to your cgi-bin directory
2) copy images/*.gif to your img directory
3) grant ....
4) grant ....



-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Patrick
Sent: July 30, 2003 5:33 PM
To: asterisk-users at lists.digium.com
Subject: RE: [Asterisk-Users] voicemail file access problems


Did it work after you left a new voice mail message?

I was looking into the source code to fix it so that the euid was set to

nobody, create the file and then change it back to uid 0, but that
didn't 
work.  Or, maybe change the file mode was 770 with the group set so that

the webserver could modify the file so I wouldn't have to run a suid
.cgi 
script.

Patrick

On Wed, 30 Jul 2003, Todd Lieberman wrote:

> I fixed my own problem.  I had just did chmod 755 vmail.cgi and it
worked.
> 
> you still need to make sure nobody has read/write permission on
> /var/spool/asterisk/vm/$MBOX
> 
> 
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Todd
> Lieberman
> Sent: Wednesday, July 30, 2003 3:50 PM
> To: asterisk-users at lists.digium.com
> Subject: RE: [Asterisk-Users] voicemail file access problems
> 
> 
> I did the chown and now I get
> 
> [Wed Jul 30 15:51:11 2003] [error] [client 216.183.124.45] Setuid/gid
script
> is writable by world., referer:
> http://asterisk.weichertrents.com/cgi-bin/vmail.cgi
> 
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Paulo
> Mannheimer
> Sent: Wednesday, July 30, 2003 3:23 PM
> To: asterisk-users at lists.digium.com
> Subject: RE: [Asterisk-Users] voicemail file access problems
> 
> 
> Thanks!
> 
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Tilghman
> Lesher
> Sent: July 30, 2003 4:06 PM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] voicemail file access problems
> 
> On Wednesday 30 July 2003 01:41 pm, Paulo Mannheimer wrote:
> > Hi folks,
> >
> > I'm having problems accessing my voicemail files through the web
> > interface.
> >
> > I remember that this was discussed on the list, and it seems to be
> > a permission problem, but I couldn't find any answer by searching
> > the archives.
> >
> > Any hint?
> 
> chown root vmail.cgi
> chmod u+s vmail.cgi
> 
> -Tilghman
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> 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
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> 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
> 

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list