How to add mosquitto password on Ubuntu

Asked by Tony DiCamillo

On Ubuntu 12.04.4 LTS, after mosquitto is installed using 'sudo apt-get install mosquitto', I go to /etc/mosquitto and try to add a password by entering the command 'mosquitto_passwd -c passwd myuser'. But mosquitto_passwd cannot be found.

In CentOS6, 'mosquitto_passwd -c passwd myuser' works correctly and creates a password file called "passwd" with a user called "myuser". I also found it a little odd that in CentOS6, /etc/mosquitto has a bunch of example files and a conf.d folder where the configuration needs to be added. Ubuntu only has the one mosquitto.conf file right at /etc/mosquitto/mosquitto.conf.

Can the differences between the Ubuntu and CentOS versions be explained?

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Roger Light
Solved:
Last query:
Last reply:
Revision history for this message
Best Roger Light (roger.light) said :
#1

Did you install mosquitto from the ppa on ubuntu? The version in the ubuntu repos is very old.

Revision history for this message
Tony DiCamillo (tdicamillo1) said :
#2

Thanks Roger Light, that solved my question.