logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Rights problem with Voicemail and non-root user: msg#00058

Subject: Rights problem with Voicemail and non-root user
Hi,

I thought I had this problem licked but there still is a rights problem with ARI and Asterisk when using a non-root user (Following the wiki at http://www.voip-info.org/tiki-pagehistory.php?page=Asterisk+non-root&diff2=25). When I issue the following:

chmod --recursive u=rwX,g=rX,o= /var/spool/asterisk

The above command results in the following rights on messages:

msg0000.gsm    rwxr-x---       asterisk
msg0000.txt    rw-r-----       asterisk
msg0000.wav    rwxr-x---       asterisk

I can transfer voicemails and play them but new messages comming in get the following:

msg0000.gsm    rwx------       asterisk
msg0000.txt    rw-r--r--       asterisk
msg0000.wav    rwx------       asterisk

After changing the rights a transferred messages has the folowing rights:

msg0000.gsm    rw-r-----       apache
msg0000.txt    rw-r-----       apache
msg0000.wav    rw-r-----       apache

New voicemail cannot be played, deleted or transferred by the ARI application. Apache is belongs to the Asterisk group. I thought I understood SUID, GUID and sticky bit now I am not so sure. What is really confussing to me is why the rights on the .txt file do not match the other 2 after running the 'chmod --recursive ...' command. Any help here would be greatly appreciated. I am using the lastest versions of Asterisk 1.2.4 and Zaptel 1.2.3, etc.

Thanks


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642


<Prev in Thread] Current Thread [Next in Thread>