Eclipse Mosquitto app permission setup

I’m trying to setup Eclipse Mosquitto. It is installed but there doesn’t seem to be any Truenas-documentation on how to add username and password to the configuration for clients. Elsewhere it give commands to run to create the user password file, but they all seem to assume running these commands as root. the app shell is user 568.

No sudo,

su: must be suid to work properly

so I’m stuck at a command prompt with no idea how to setup non-anonymous mqtt. I googled for an hour without luck. I know others have done this, so I must have lost my mind. :roll_eyes:

1 Like

Same issue here. Eclipse-Mosquitto runs when I create a config file with the entry

allow_anonymous true
log_dest stdout

With that, I can access MQTT via MQTT Explorer with no login credentials. However, for Zigbee2MQTT, I need to fill in credentials in the setup process. Now I struggle to define a password and username in Eclipse-Mosquitto which I need for Zigbee2MQTT:

I found help on reddit. The post has the title “Help: Setting Up User Authentication for Eclipse Mosquitto on TrueNAS Scale”

1 Like

Ohne additional hint. Vor me it worked when i set the ACL for user and group for the two datasets to user and group 568.