Newly created mailboxes get owner of root:root instead of asterisk:asterisk

FreePBX 2.9.0.9 on Asterisk 1.8.8.

When I create a mailbox from Extensions, click extension (ext is already created, I’m just adding voicemail), change from Disabled to Enabled, add email address and send attachment. Log in to mailbox 1 time to activate it.

Once I do all of this and check the mailbox structure I see this:

4 drwxrwxr-x 4 asterisk asterisk 4096 Jan 22 12:39 1234
4 drwxr-xr-x 6 asterisk asterisk 4096 Jan 30 12:24 205
4 drwxr-xr-x 5 root root 4096 Feb 1 16:29 216

(I set the permissions on mailbox 205 manually as a test).

Now, this does not appear to impact anything while using vmail from the phone, I can delete messages just fine. What this does appear to break is the ARI. I’m unable to delete messages in the mailbox via the GUI. As soon as the permissions are changed, I’m able to.

That means you have asterisk running as root not as the asterisk use. Stop asterisk than do a amportal start to start asterisk properly.

Thank you! You are indeed correct!