1
24.7 Production Series / Nginx Plugin Fails to Modify Log Folder Due to Ownership
« on: August 18, 2024, 05:06:18 am »
I'm encountering an issue where the ownership of the Nginx log folder (/var/log/nginx) changes to root:wheel after each reboot.
Due to this change in ownership, the Nginx plugin cannot modify the log folder, which creates several issues.
(unable to parse logs through crowdsec, error log gets flooded with error 13: permission denied)
I have noticed that if I manually change the ownership of the log folder to a lower privilege level, which is www:wheel, the problem is resolved and everything functions correctly.
But it reverts to root:wheel whenever I reboot the system.
I'm trying to understand where this issue is originated from. Is there a particular script or configuration within OPNsense that is resetting the ownership of this folder to root:wheel after a reboot? Any insights or guidance on how to fix this issue would be greatly appreciated.
OpnSense 24.7.1
Nginx 1.34
Due to this change in ownership, the Nginx plugin cannot modify the log folder, which creates several issues.
(unable to parse logs through crowdsec, error log gets flooded with error 13: permission denied)
I have noticed that if I manually change the ownership of the log folder to a lower privilege level, which is www:wheel, the problem is resolved and everything functions correctly.
But it reverts to root:wheel whenever I reboot the system.
I'm trying to understand where this issue is originated from. Is there a particular script or configuration within OPNsense that is resetting the ownership of this folder to root:wheel after a reboot? Any insights or guidance on how to fix this issue would be greatly appreciated.
OpnSense 24.7.1
Nginx 1.34

