Yes, you were supposed to have changed the permissions when you copied them. If they are owned by root, Nextcloud will get access denied when trying to manage them.
All files must be owned by www-data:www-data with permission 640 on files and 750 on folders.