File permission error, after running as root

During the debug phase of my OH2 setup, I ran the 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:
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.