[ZBX-9575] logrotate snippet for zabbix-server lacks "su" directive Created: 2015 May 20 Updated: 2017 May 30 Resolved: 2015 Aug 05 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Installation (I) |
Affects Version/s: | 2.4.5 |
Fix Version/s: | 2.2.10rc2, 2.4.6rc1 |
Type: | Incident report | Priority: | Trivial |
Reporter: | D.Spindel Ljungmark | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | packaging | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
rpm / CentOS packages |
Description |
the zabbix-server logrotate snippet lacks "su zabbix zabbix" in there, and causes logrotate to not rotate logs error: skipping "/var/log/zabbix/zabbix_server.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation. |
Comments |
Comment by richlv [ 2015 May 20 ] |
which repository was used to install those packages ? |
Comment by D.Spindel Ljungmark [ 2015 May 20 ] |
$ rpm -qf /etc/logrotate.d/zabbix-server $ yum info zabbix-server
$ cat /etc/yum.repos.d/zabbix.repo [zabbix-non-supported] |
Comment by richlv [ 2015 May 20 ] |
thanks. kodai, could you please take a look ? |
Comment by Anton Samets [ 2015 May 21 ] |
I suppose it's only for new versions of logrotate (Centos 7 or smth like this). For Centos 5, 6 it won't work. |
Comment by Kodai Terashima [ 2015 Aug 05 ] |
Fixed in 2.2.10 and 2.4.6 RHEL7 packages |