-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Broker error on include_dir permissions on HUP #857
Comments
I'd like to reconfirm your situation.
Right? |
The point is that the config is read originally as the root user, so it succeeds. Sending the HUP and it failing is then unexpected. |
@ralight if mosquitto daemon run as the root, the config should be reloaded. But, if mosquitto daemon run as the non-root user, I guess the config should not be reloaded. This issue's situation is the latter. So I guess it's normal to fail to reload. I've misunderstood? |
This issue looks like a duplicate of |
It shouldn't be possible this occurs as of 2.0. |
If the configured include_dir has incorrect permissions (e.g. drwx------, and owned by root; with mosquitto running under non-root user), then the broker starts up ok and uses the included conf(s), but if then sent a SIGHUP:
Jun 13 07:49:43 wgs daemon.info mosquitto[908]: Reloading config.
Jun 13 07:49:43 wgs daemon.err mosquitto[908]: Error: Unable to open include_dir '/etc/mosquitto/include.d'.
I guess this is because, at start up, the config is read before the dropping of user privileges, and permissions are not re-checked afterwards.
The text was updated successfully, but these errors were encountered: