Joseph L. Casale
2009-Feb-23 05:06 UTC
[asterisk-users] Asterisk 1.6.0.5 as non root and moh perm issue
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? Anyone know why? Thanks! jlc
Danny Nicholas
2009-Feb-23 14:14 UTC
[asterisk-users] Asterisk 1.6.0.5 as non root and moh perm issue
Have you tried this? 'su - asterisk 'cd /var/lib/asterisk/moh When this works, so will *. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joseph L. Casale Sent: Sunday, February 22, 2009 11:06 PM To: 'asterisk-users at lists.digium.com' Subject: [asterisk-users] Asterisk 1.6.0.5 as non root and moh perm issue 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? Anyone know why? Thanks! jlc _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
David Backeberg
2009-Feb-23 15:49 UTC
[asterisk-users] Asterisk 1.6.0.5 as non root and moh perm issue
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?