-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to maintain passwords with mosquitto_passwd: Warning: File has world readable permissions. Future versions will refuse to load this file.Killed #2890
Comments
Getting the same message. |
Set the 777 permissions |
As a work-around, try running this in your shell before the mosquitto_passwd command: $ umask 077 I suggest you also do this as the user under which you run mosquitto. I'm not sure if the passwd file is open at the point it drops down from root, but my best guess is it comes later. rather than screwing around with umask, you could also just change the ownership and permissions on the file chmod 600 pass.txt or chmod 640 pass.txt |
The message isn't the problem here, it's the fact that it's being killed for some reason before completing. I've tried to reproduce this on docker, but have been unable to do so. Is there anything else you can tell me about your system? Is it running on x86_64, or arm64, or a different platform, for example? |
I am getting the same worning. My environment is:
|
Hi,
Can you help us please ? |
To remove the warnings, use the following commands:
|
@ralight :
i get a warning:
if I do :
the warning is different :
but the broker is working fine in both cases |
I did get the same message today when I modified my passwd file with mosquitto_passwd. I then set the permissions as proposed, but upon the next start of my mosquitto container, mosquitto itself seem to have changed the owner and group of the paswd file to mosquitto:mosquitto again. |
I have the same problem. It's great to get a hint of how to fix the issue, in my case the hint is |
same problem |
I am also getting this when running the docker container. I tried:
|
For anyone that is trying to fix inside a container:
|
@douglasjunior That did not work for me. The owner did not change. Even inside the container a |
Try to remove the file and then create it again inside the container, then, run: chmod 0700 <path to file>
chown mosquitto: <path to file> |
Today I upgraded to mosquitto 2.0.17 from the docker hub.
I wanted to add one more user, but I'm not able to do this because of this error:
I tried creating a new pass.txt file using
mosquitto_passwd -U
with a prepopulated open text fie - didn't work.Adding a user with
mosquitto_passwd -c
- same error message:Tried
mosquitto_passwd -b
- same error:It used to work just fine in the past. I can't remember which version I had before, but it was at least 2-3 years old.
HELP!
The text was updated successfully, but these errors were encountered: