Re: [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-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Joseph L. Casale Sent: Sunday, February 22, 2009 11:06 PM To: 'asterisk-users@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 ___ -- 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
Re: [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 *. Yup, I should have stated that more specifically: # ll /var/lib/asterisk/moh total 6604 -rw-r- 1 asterisk asterisk 1939794 Sep 20 2006 fpm-calm-river.wav -rw-r- 1 asterisk asterisk 2582196 Sep 20 2006 fpm-sunshine.wav -rw-r- 1 asterisk asterisk 2217318 Sep 20 2006 fpm-world-mix.wav -rw-r- 1 asterisk asterisk 184 Jun 13 2006 LICENSE-asterisk-moh-freeplay-wav # su - asterisk -bash-3.2$ cd /var/lib/asterisk/moh -bash-3.2$ pwd /var/lib/asterisk/moh -bash-3.2$ Yet it still complains of access denied? 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
Re: [asterisk-users] Asterisk 1.6.0.5 as non root and moh perm issue
In my directory these files are 0644 (-rw-r--r--) and directory perms are 0755 (-rwxr-x-wx). Check that. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Joseph L. Casale Sent: Monday, February 23, 2009 8:55 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [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 *. Yup, I should have stated that more specifically: # ll /var/lib/asterisk/moh total 6604 -rw-r- 1 asterisk asterisk 1939794 Sep 20 2006 fpm-calm-river.wav -rw-r- 1 asterisk asterisk 2582196 Sep 20 2006 fpm-sunshine.wav -rw-r- 1 asterisk asterisk 2217318 Sep 20 2006 fpm-world-mix.wav -rw-r- 1 asterisk asterisk 184 Jun 13 2006 LICENSE-asterisk-moh-freeplay-wav # su - asterisk -bash-3.2$ cd /var/lib/asterisk/moh -bash-3.2$ pwd /var/lib/asterisk/moh -bash-3.2$ Yet it still complains of access denied? 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 ___ -- 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
Re: [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 jcas...@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? ___ -- 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
Re: [asterisk-users] Asterisk 1.6.0.5 as non root and moh perm issue
Danny Nicholas schrieb: In my directory these files are 0644 (-rw-r--r--) and directory perms are 0755 (-rwxr-x-wx) 0755 is rwxr-xr-x :-) Philipp Kempgen -- AMOOCON 2009, May 4-5, Rostock / Germany - http://www.amoocon.de Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 -- ___ -- 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
Re: [asterisk-users] Asterisk 1.6.0.5 as non root and moh perm issue
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? dev*CLI moh show files Class: default dev*CLIFile: /var/lib/asterisk/moh/fpm-sunshine dev*CLIFile: /var/lib/asterisk/moh/fpm-world-mix dev*CLIFile: /var/lib/asterisk/moh/fpm-calm-river dev*CLI moh show classes Class: default dev*CLIMode: files dev*CLIDirectory: /var/lib/asterisk/moh dev*CLIUse Count: 0 dev*CLI Even with perms set to 755, the error appears? [r...@dev ~]# asterisk -U asterisk -vvvc | egrep -i '(warn|error)' [Feb 23 11:51:11] WARNING[8809]: res_musiconhold.c:987 moh_scan_files: chdir() failed: Permission denied [Feb 23 11:51:11] WARNING[8809]: translate.c:645 __ast_register_translator: plc_samples 160 format f Looks more or less to be cosmetic than anything else I am now thinking. Thanks guys! 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
[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