This is a guide I’m mainly written a personal how-to guide, but I hope it can help others.
|Official manual Page||chown|
This is a fairly generic Linux-based command so it work across different Ubuntu editions and versions.
To change owership of single or multiple file/directory:
chown -R openhab:openhab /opt/containers/openhab/
|-R||recursively change ownership down file system|
|user:group||user and optional group to have ownership|