I took the easy-cum-hard way and updated the the UID from 998 to 1000 in the container. Some tips if someone else would like to do this (not a script and definitely not recommended!):
pct enter xxx # to enter a running container outside of ssh...
The problem:
I have a CIFS folder mounted on the host. As such I have little control over the permissions and owners of folders within that. However, since this folder is exclusively used for container mountpoints, I use the...