Manage password files for mosquitto
mosquitto_passwd [-c | -D] passwordfile username mosquitto_passwd -U passwordfile
mosquitto_passwd is a tool for managing password files the the mosquitto MQTT broker.
Usernames must not contain ":". Passwords are stored in a similar format to crypt(3).
-c
Create a new password file. If the file already exists, it will be overwritten.
-D
Delete the specified user from the password file.
-U
This option can be used to upgrade/convert a password file with plain text passwords into one using hashed passwords. It will modify the specified file. It does not detect whether passwords are already hashed, so using it on a password file that already contains hashed passwords will generate new hashes based on the old hashes and render the password file unusable.
passwordfile
The password file to modify.
username
The username to add/update/delete.
Add a user to a new password file:
mosquitto_passwd -c /etc/mosquitto/passwd ral
Delete a user from a password file
mosquitto_passwd -D /etc/mosquitto/passwd ral
mosquitto_passwd bug information can be found at http://launchpad.net/mosquitto
mosquitto(8), mosquitto.conf(5), mqtt(7)
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
This product includes cryptographic software written by Eric Young ([email protected])
This product includes software written by Tim Hudson ([email protected])
Roger Light <[email protected]>