LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mosquitto_passwd

manages password files for the Mosquitto MQTT broker

TLDR

Create password file with user
$ mosquitto_passwd -c [passwordfile] [username]
copy
Add user to existing file
$ mosquitto_passwd [passwordfile] [username]
copy
Delete user
$ mosquitto_passwd -D [passwordfile] [username]
copy
Batch mode with password
$ mosquitto_passwd -b [passwordfile] [username] [password]
copy

SYNOPSIS

mosquitto_passwd [options] passwordfile [username]

DESCRIPTION

mosquitto_passwd manages password files for the Mosquitto MQTT broker. Creates and modifies password entries with secure hashing. Used for client authentication in MQTT messaging systems.

PARAMETERS

-c

Create new password file.
-D
Delete user from file.
-b
Batch mode, password on command line.
-U
Upgrade plain text file to hashed.

INSTALL

sudo apt install mosquitto
copy
sudo dnf install mosquitto
copy
sudo pacman -S mosquitto
copy
sudo apk add mosquitto
copy
sudo zypper install mosquitto
copy
brew install mosquitto
copy
nix profile install nixpkgs#mosquitto
copy

CAVEATS

Avoid -b flag in scripts as passwords may appear in process listings. Use interactive mode or pipe from secure sources.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid