[Debian-iot-maintainers] Bug#1110824: Bug#1110824: mosquitto: avoid changing file permissions and ownership on each service startup

Joachim Zobel jz-2017 at heute-morgen.de
Sat Aug 16 08:54:29 BST 2025


Am Montag, dem 11.08.2025 um 10:56 +0200 schrieb Michael Prokop:
>   ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto
>   ExecStartPre=/bin/chown mosquitto:mosquitto /var/log/mosquitto
>   ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto
>   ExecStartPre=/bin/chown mosquitto:mosquitto /run/mosquitto

It might be the above is obsolete anyway. On my local instance I see:

$ ls -ld /var/log/mosquitto/
drwxr-xr-x 2 mosquitto mosquitto 4096 18. Jul 06:22 /var/log/mosquitto/

so at least the chmod is overriden and 

$ ls -ld /run/mosquitto/
drwxr----- 2 mosquitto mosquitto 40 16. Aug 06:40 /run/mosquitto/

However /run/mosquitto is empty.

I'll take a closer look.

Sincerely,
Joachim



More information about the Debian-iot-maintainers mailing list