Is this the same Magento instance where you ran the Support tool for this case?
If it's the same one and you have Magento 2.2.4, the permissions of htdocs folder are set to daemon:daemon, that's why the bitnami user doesn't have write privileges in that folder. You can either follow any of these methods to run that command
sudo composer require mageplaza/module-smtp
sudo chown -R daemon:daemon /opt/bitnami/apps/magento/htdocs
- Use the daemon user directly
sudo su daemon -s /bin/bash -c "composer require mageplaza/module-smtp"
Happy to help!
Was my answer helpful? Click on