Use the Bitnami Magento CLI tool
The Bitnami Magento Stack uses the file system ownership for one user approach.
In order to solve permissions and ownership issues, Bitnami has created the magento-cli tool. This can replace the regular magento command-line interface. To use it, execute a Magento command as shown below. Remember to replace the YOUR_MAGENTO_COMMAND placeholder with the command to be executed.
$ sudo magento-cli YOUR_MAGENTO_COMMAND
Watch the following video to learn how to setup and use the Bitnami magento-cli Tool: