On Sat, 7 Apr 2012, sean darcy wrote:
I'm trying to run asterisk as "asterisk". Which is harder than I
thought.
10.3.0. When I put a callfile into /var/spool/asterisk/outgoing, I get
this warning:
Unable to set utime on /var/spool/asterisk/outgoing/callfile.call:
Operation not permitted
ls -l /var/spool
.........
drwxr-x---. 9 asterisk asterisk 4096 Apr 7 21:41 asterisk
ls -l /var/spool/asterisk
...........
drwxrwx---. 2 asterisk asterisk 4096 Apr 7 21:14 outgoing
Do 'ps -U asterisk' or 'ls -l /var/spool/asterisk/outgoing/callfile.call'
yield any clues?
Also, just in case you're unaware, creating the call file in the
/outgoing/ directory is an invitation for a race condition. A 'better
practice' is to create the file in a temporary directory on the same
device, write to it, close it and 'mv' it. 'mv' is an 'atomic' operation.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users