Not able to create the password file for mosquitto broker

2,431 views
Skip to first unread message

dileep

unread,
Feb 26, 2013, 4:54:01 AM2/26/13
to mq...@googlegroups.com
Hi,

I am not able to create the password file for mosquitto broker I have used mosquitto_passwd util as below

mosquitto_passwd  -c /etc admin
password:
re-enter password:

It is not throwing any error even it is not creating any password file .  Can any body tell what is happening here. I just want  to give username and password to the mosquitto broker. So that no anonymous client can be connected. 

Roger Light

unread,
Feb 26, 2013, 5:56:13 AM2/26/13
to mq...@googlegroups.com
Hi Dileep,

> I am not able to create the password file for mosquitto broker I have used
> mosquitto_passwd util as below

This would probably be better asked on the mosquitto-users mailing list.

> mosquitto_passwd -c /etc admin

The first problem is that you are attempting to create a password file
at the location "/etc", which is a directory. You need to provide the
full path, e.g. "mosquitto_passwd -c /etc/mosquitto/passwd admin". A
second possible problem is that you must have permission to write to
the location.

Version 1.1.3 is better at reporting errors, but I will ensure that it
handles the case of trying to write to a directory.

Cheers,

Roger
Reply all
Reply to author
Forward
0 new messages