HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mosquitto_passwd — Manage password files for mosquitto. See also: `mosquitto`. More information: <https://mosquitto.org

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpasswordfilesforclimanagemosquitto_passwdmosquitto

Problem

How to use the mosquitto_passwd command: Manage password files for mosquitto. See also: mosquitto. More information: <https://mosquitto.org/man/mosquitto_passwd-1.html>.

Solution

mosquitto_passwd — Manage password files for mosquitto. See also: mosquitto. More information: <https://mosquitto.org/man/mosquitto_passwd-1.html>.

Add a new user to a password file (will prompt to enter the password):
mosquitto_passwd {{path/to/password_file}} {{username}}


Create the password file if it doesn't already exist:
mosquitto_passwd -c {{path/to/password_file}} {{username}}


Delete the specified username instead:
mosquitto_passwd -D {{path/to/password_file}} {{username}}


Upgrade an old plain-text password file to a hashed password file:
mosquitto_passwd -U {{path/to/password_file}}

Code Snippets

Add a new user to a password file (will prompt to enter the password)

mosquitto_passwd {{path/to/password_file}} {{username}}

Create the password file if it doesn't already exist

mosquitto_passwd -c {{path/to/password_file}} {{username}}

Delete the specified username instead

mosquitto_passwd -D {{path/to/password_file}} {{username}}

Upgrade an old plain-text password file to a hashed password file

mosquitto_passwd -U {{path/to/password_file}}

Context

tldr-pages: common/mosquitto_passwd

Revisions (0)

No revisions yet.