Running root commands from custom FreePBX module

I am creating a custom FreePBX module. This is my first time trying to develop something for FreePBX so I am trying to learn how to use the built-in libraries.

My module will need to run Linux commands as root. I can’t seem to find anything in the BMO library to do that. I believe the sysadmin module runs some commands as root so there must be some way to do it from a FreePBX module.

To do it the “built in way” You have to use hooks through sysadmin. The module has to be signed.

See:

Just what I am looking for. Thanks.

I was hoping I wouldn’t have to sign it during development. I know that when I tried to modify the firewall module it wouldn’t work even if I disabled signature checking.

That’s the downside of commercial modules , you will never know what they are doing :wink:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.