[asterisk-users] Asterisk 1.6.0.5 as non root and moh perm issue

David Backeberg dbackeberg at gmail.com
Mon Feb 23 09:49:33 CST 2009


On Mon, Feb 23, 2009 at 12:06 AM, Joseph L. Casale
<JCasale at activenetwerx.com> wrote:
> I am running Asterisk as non root and have set the required permissions for all
> directories including the moh dir specified in musiconhold.conf yet asterisk
> still complains it doesn't have access when starting? I get:
>
> WARNING[3600]: res_musiconhold.c:987 moh_scan_files: chdir() failed: Permission denied
>
> I ran asterisk with strace, and don't see it failing to access anything?

The specific error is that it cannot chdir to the music on hold
directory. Are you sure you have the right directory?

what do you get when you do:
CLI> moh show files
and
CLI> moh show classes

The specific error is that it cannot chdir to the music on hold
directory. Who owns the parent directory?



More information about the asterisk-users mailing list