File permission error, after running as root

During the debug phase of my OH2 setup, I ran the start_debug.sh as root, and now I cannot start the service as the openhabian user. The log files point to a permissions problem, where several files were written with ‘root’ as he owner, which can no longer be accessed as ‘openhabian’. I changed the permissions of the files in /var/lib/openhab2, but there must be others scattered around. Is there a quick fix for this, or do I need to start over?

You can see the file locations here: https://www.openhab.org/docs/installation/linux.html#file-locations
I would guess that at least logfiles and database files should be writable to openHAB user, maybe application has to be writable, too, because openHAB2 will need write permission to install addons.