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.
$ cd /opt/bitnami/apps/magento/htdocs/ $ sudo bin/magento-cli YOUR_MAGENTO_COMMAND