Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#61037 - [nginx] nginx log file created with different mode and user, group after logrotate
Attached to Project:
Arch Linux
Opened by idealities (ideal) - Wednesday, 12 December 2018, 03:04 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Saturday, 16 September 2023, 09:27 GMT
Opened by idealities (ideal) - Wednesday, 12 December 2018, 03:04 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Saturday, 16 September 2023, 09:27 GMT
|
DetailsDescription:
Due to 'create 640 http log' in logrotate file (https://git.archlinux.org/svntogit/packages.git/tree/trunk/logrotate?h=packages/nginx ), after logrotate, the log files will be created as 0640, with user http and group log. However this is not same as log files created by nginx first. Additional info: * package version(s) nginx * config and/or log files etc. Steps to reproduce: Install nginx, benchmark it to produce some access logs, and run logrotate /etc/logrotate.conf manually. |
This task depends upon
Closed by Massimiliano Torromeo (mtorromeo)
Saturday, 16 September 2023, 09:27 GMT
Reason for closing: Fixed
Additional comments about closing: nginx-1.24.0-2
Saturday, 16 September 2023, 09:27 GMT
Reason for closing: Fixed
Additional comments about closing: nginx-1.24.0-2
The "log" group is not consistent, so I changed it to root in logrotate.
[1]: https://superuser.com/questions/1549120/nginx-creates-log-files-owned-by-root-instead-of-specified-user/1591135#1591135