Node-Red settings.js file location

Does anyone know where to find the Node-Red settings.js file on the latest IOT installation for a Beaglebone Black?
also how to get to it and edit it with permissions.

Under /opt/node-red/ ?


Thanks for the reply.
Not on the latest IOT monthly snapshot! I looked and it has LiCENCE and
I have managed to find it by looking at the log file using journalctl --since yesterday
This gave me the path as /var/lib/node-red/.node-red/settings.js
Just putting it here for information.

Ah sorry, correct that’s the user settings location, I had thought it was next to the base install directory.