Nextcloud config problem

I installed Nextcloud in Portainer on my Odroid C4 with Coreelec and I set the /data folder on my USB drive connected to the C4 but now I can not log in as there is permission issue. How do I set the permissions for this USB drive? Thanks