https://bugzilla.novell.com/show_bug.cgi?id=790726
https://bugzilla.novell.com/show_bug.cgi?id=790726#c1
--- Comment #1 from Marcel Gmür 2012-11-21 15:05:26 UTC ---
Are you sure, it is a bug of the package, not your local config?
nginx does write logs as root (user who starts the master process) with the
default config.
workers (user nginx) open logs when there are variables in use, which could be
logs for hosts (see
http://nginx.org/en/docs/http/ngx_http_log_module.html#directives)
example:
access_log /spool/vhost/logs/$host;
I changed this because of this rpmlint error:
nginx.x86_64: W: suse-logrotate-user-writable-log-dir /var/log/nginx
nginx:nginx 0755
The log directory is writable by unprivileged users. Please fix the
permissions so only root can write there or add the 'su' option to your
logrotate config
Also tested on a container:
linux:/var/log/nginx # l
total 16
drwxr-x--- 2 root root 4096 Nov 21 14:54 ./
drwxr-xr-x 11 root root 4096 Nov 21 14:54 ../
-rw-r--r-- 1 root root 175 Nov 21 15:00 access.log
-rw-r--r-- 1 root root 234 Nov 21 15:00 error.log
If we would change logrotate to use su, the logfiles written by root (default
nginx config) could not be rotated anymore.
Now the question is what kind of logfiles are you trying to write to /var/log
and do you think, it is the right place.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.