Installation of external module is not possible from the web interface for the following reason

We are getting this message when trying to install an external app/module. Could someone help me with what permissions are required on the AWS/Ubuntu server to allow for the access and to write to the directory?

If permissions on your file system allow it, you can use this tool to deploy an external module. The module will then be visible on the tab Available app/modules.

Installation of external module is not possible from the web interface for the following reason:

Failed to write in directory /var/www/html/dolibarr/htdocs/custom

The web hoster of the application just didn’t set write permission into directory /var/www/html/dolibarr/htdocs/custom
You musk ask write permission on this directory if you want to deploy modules.

Thank you for your help!