/opt should be the right folder. Creating a new user will need root as well. I usually create a new system user (without home directory) and assign it to the software it needs to run in
Thus for example install it in
/opt/nodebb. Create a new system user, on Debian based systems that would be:
sudo adduser \
And then assign the folder to this new user:
sudo chown nodebb:nodebb -R /opt/nodebb.
Also would be nice to setup a SystemD-Service, which would execute
/opt/nodebb/nodebb start|stop as the newly created
Or just go with
docker from the start.