[asterisk-users] Error opening file for reading: Permission denied
Mitch Claborn
mitch_ml at claborn.net
Tue Aug 19 16:53:57 CDT 2014
Grepping the output of the strace revealed this:
stat("/root/.terminfo", 0x7fff8622ed50) = -1 EACCES (Permission denied)
open("/root/.asterisk_history", O_RDONLY) = -1 EACCES (Permission denied)
open("/root/.odbcinst.ini", O_RDONLY) = -1 EACCES (Permission denied)
[this one many times]
That must be because I'm starting asterisk as "root". When I su to
asterisk first, then start it, those above disappear. Problem solved!
Thanks Steve!
Mitch
On 08/19/2014 03:39 PM, Steve Edwards wrote:
>>> On Tue, Aug 19, 2014 at 11:36 AM, Mitch Claborn <mitch_ml at claborn.net>
>
>>>> No, that's not it. The wording is different.
>
> Can you run Asterisk via strace? Something like:
>
> sudo -u asterisk strace /usr/sbin/asterisk -c -p -U asterisk
>
More information about the asterisk-users
mailing list