sean darcy
2012-Apr-08 01:44 UTC
[asterisk-users] another non-root problem: unable to set utime ??
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 any help appreciated. sean
Steve Edwards
2012-Apr-08 02:51 UTC
[asterisk-users] another non-root problem: unable to set utime ??
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 outgoingDo '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 sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000