<div style="font-family: arial; font-size: 14px;"><div style="font-family: arial; font-size: 14px;">If you're on RHEL or CentOS or one of its descendants, I would check if SELinux is enforcing (`sestatus` or `cat /etc/selinux/config` and look for "SELINUX=enforcing"), if it is, you'll probably need to create a policy to allow the Asterisk context to execute rm and/or delete files.<br></div><div style="font-family: arial; font-size: 14px;">I use `audit2why` and `audit2allow` in policycoreutils-devel (on CentOS) to generate SELinux policy modules.<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">-Michael Englehorn<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div class="protonmail_signature_block protonmail_signature_block-empty" style="font-family: arial; font-size: 14px;"><div class="protonmail_signature_block-user protonmail_signature_block-empty">‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div></div><div class="protonmail_quote"><div>On Monday, January 10th, 2022 at 1:03 PM, Jerry Geis <jerry.geis@gmail.com> wrote:<br></div></div></div><blockquote type="cite" class="protonmail_quote"><div dir="ltr"><div>I am trying to run this command:<br></div><div>exten => _4XX,n,System(/usr/bin/rm /tmp/test.incoming.txt)<br></div><div><br></div><div><div>From the log:<br></div><div>Executing [402@smvoice-sip:7] System("SIP/103-00000018", "/usr/bin/rm /tmp/test.incoming.txt") in new stack<br></div><div><br></div><div><br></div><div>Is "rm" not an allowed command - the above file is not removed.<br></div><div>-rw-rw-rw- 1 silentm silentm 3 Jan 10 14:02 /tmp/test.incoming.txt<br></div><div><br></div></div><div>Thanks!<br></div><div><br></div><div>Jerry<br></div></div></blockquote><div style="font-family: arial; font-size: 14px;"><br></div>