Nextcloud LAN IP script, access denied

Hey guys, when using the script " casaos-add-lan-ip-to-nextcloud-config" and ssh into my home server running casaos I get the message I copy&pasted down below, and therefore when opening nextcloud it still says " Access through untrusted domain"

cp: cannot open ‘/DATA/AppData/big-bear-nextcloud/html/config/config.php’ for reading: Permission denied
bash: line 10: /DATA/AppData/big-bear-nextcloud/html/config/config.php: Permission denied