Connect(login) to AMI fails when not root

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Connect(login) to AMI fails when not root

Postby crs » Mon Sep 14, 2015 8:01 pm

I'm converting a working setup from Asterisk 11 to Asterisk 13.4.2
In order to support dynamic configuration as well as running multiple asterisk instances, we copy, then modify some of the .conf files. To facilitate this we reduce some protections for directories such as /etc/asterisk.

Under Asterisk 11, we normally run as non-root.
When we run as root under 13.4.2 login to AMI works.
When we run as non-root under 13.4.2 logins to AMI we fail. I hope someone might be able, by viewing our "full" log segment below what is going wrong.

Code: Select all
[150914-153836.36366] DEBUG[26091] manager.c: Running action 'Login'
[150914-153836.36377] SECURITY[26047] res_security_log.c: SecurityEvent="SuccessfulAuth",EventTV="1442259516-363687",Severity="Informational",Service="AMI",EventVersion="1",AccountID="admin",SessionID="0x9e5bf8c",LocalAddress="IPV4/TCP/0.0.0.0/5039",RemoteAddress="IPV4/TCP/192.168.15.224/38054",UsingPassword="0",SessionTV="1442259516-363685"
[150914-153836.36535] DEBUG[26091] manager.c: Running action 'Command'
[150914-153836.36636] DEBUG[26091] manager.c: Running action 'Command'
[150914-153836.36759] DEBUG[26091] manager.c: Running action 'Command'
[150914-153836.36945] DEBUG[26091] manager.c: Running action 'Command'
[150914-153930.60533] DEBUG[26091] manager.c: Running action 'Command'
[150914-153932.60751] DEBUG[26091] manager.c: Running action 'Command'
[150914-153932.60764] DEBUG[26091] taskprocessor.c: destroying taskprocessor 'ast_msg_queue'
[150914-153932.60770] VERBOSE[26091] asterisk.c: Asterisk cleanly ending (0).
[150914-153932.60771] VERBOSE[26091] asterisk.c: Executing last minute cleanups
[150914-153932.60774] DEBUG[26091] res_musiconhold.c: Destroying MOH class 'default'
[150914-153932.60776] DEBUG[26091] logger.c: Unregistered dynamic logger level 'CC' with index 16.
[150914-153932.60782] DEBUG[26091] taskprocessor.c: destroying taskprocessor 'CCSS core'
[150914-153932.60829] DEBUG[26091] pbx.c: Investigate ctx parkedcalls features
[150914-153932.60830] DEBUG[26091] pbx.c: delete ctx parkedcalls features
[150914-153932.60831] DEBUG[26091] pbx.c: Investigate ctx default pbx_config
[150914-153932.60831] DEBUG[26091] pbx.c: Couldn't delete ctx default/pbx_config; refc=1; tmp.root=0x9e00788
[150914-153932.60832] DEBUG[26091] pbx.c: Investigate ctx externalphone pbx_config
[150914-153932.60832] DEBUG[26091] pbx.c: Couldn't delete ctx externalphone/pbx_config; refc=1; tmp.root=0x9dfe210
[150914-153932.60832] DEBUG[26091] pbx.c: Investigate ctx incoming pbx_config
[150914-153932.60833] DEBUG[26091] pbx.c: Couldn't delete ctx incoming/pbx_config; refc=1; tmp.root=0x9dfd670
[150914-153932.60833] DEBUG[26091] pbx.c: Investigate ctx outgoing pbx_config
[150914-153932.60834] DEBUG[26091] pbx.c: Couldn't delete ctx outgoing/pbx_config; refc=1; tmp.root=0x9df6b38
[150914-153932.60849] DEBUG[26091] taskprocessor.c: destroying taskprocessor 'pbx-core'
[150914-153932.61318] DEBUG[26091] taskprocessor.c: destroying taskprocessor 'core_event_dispatcher'
[150914-153932.61328] DEBUG[26091] asterisk.c: Asterisk ending (0).
crs
Newsterisk
 
Posts: 31
Joined: Fri Oct 24, 2014 1:03 pm

Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron