mosquitto_passwd: add page (#3232)

italian
Starbeamrainbowlabs 2019-08-10 10:18:47 +01:00 committed by Owen Voke
parent 759f517360
commit e55edff06d
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# mosquitto_passwd
> Manage password files for mosquitto.
> See also `mosquitto`, the MQTT server that this manages.
> 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}}`