← 返回命令列表

Linux command

mosquitto_passwd 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Create password file with user

mosquitto_passwd -c [passwordfile] [username]

Add user to existing file

mosquitto_passwd [passwordfile] [username]

Delete user

mosquitto_passwd -D [passwordfile] [username]

Batch mode with password

mosquitto_passwd -b [passwordfile] [username] [password]

说明

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.

参数

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

FAQ

What is the mosquitto_passwd command used for?

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.

How do I run a basic mosquitto_passwd example?

Run `mosquitto_passwd -c [passwordfile] [username]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c do in mosquitto_passwd?

Create new password file.