awaazde / avaajotalo

Avaaj Otalo - voice-based social software
2 stars 0 forks source link

System Shouldn't Have To Run As Root #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems that right now the system has to run root. At least one reason is 
related to the odbc setup. For example say you have user named otalo, then

        isql otalo otalo otalo 

will get a connection failure. To get a connection, you must,

      sudo isql otalo otalo otalo 

And the same problem shows up if freeswitch is not started by root:

2012-05-03 14:59:27.218233 [ERR] mod_lua.cpp:182 
/usr/local/freeswitch/scripts/AO/paths.lua:80: [unixODBC][Driver Manager]Data 
source name not found, and no default driver specified

stack traceback:
    [C]: in function 'assert'
    /usr/local/freeswitch/scripts/AO/paths.lua:80: in main chunk

This is the offending line:

con = assert (env:connect("otalo","otalo","otalo","localhost"));

Original issue reported on code.google.com by bdr...@gmail.com on 4 May 2012 at 7:44