[Asterisk-Users] Voicemail2

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Mon May 12 11:47:03 MST 2003


On Sunday 11 May 2003 14:17, The Traveller wrote:
> > > - It would be really helpful to be able to configure the
> > > permissions (mode and maybe user / group as well) of
> > > anything created in the voicemail spool-directory, if
> > > possible on a per-mailbox basis.  In the current
> > > situation, you almost don't get around running "vmail.cgi"
> > > as root, patching "app_voicemail.c" to change the
> > > permissions or running a cron-job to chmod / chown the
> > > files regularly.  I think many people here would love to
> > > see such an option, as I've seen the permission- problem
> > > mentioned here frequently.
> >
> > I think it can be done with setuid and setgid directories.
>
> I tried this.  The problem is that all files are created with
> mode "600" and this trick of using "s"-bits on directories
> only works for the group of the created files, not for the
> owner, so they still can't be read or modified by anyone but
> the user running Asterisk, which is almost always root. The
> files and directories would need to be created with R/W for
> the group to make this trick work.

I had a patch available for the original voicemail to set this
up.  I should have another patch for voicemail2 to do this, as
I'll need it myself before I make the switch (users on one of my
systems can check their voicemail via Samba).

-Tilghman




More information about the asterisk-users mailing list