[MCOL-1480] RPM on CentOS 6 installs a logrotate config that errors about su Created: 2018-06-18  Updated: 2022-11-05  Resolved: 2022-11-05

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 1.1.4
Fix Version/s: Icebox

Type: Task Priority: Major
Reporter: Tom Parrott Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Environment:

CentOS 6.9 AMD64


Sprint: 2018-13, 2018-14, 2018-15, 2018-16, 2018-17, 2018-18, 2018-19, 2018-20, 2018-21

 Description   

The RPM ColumnStore packages install a logrotate config that errors each day with:

/etc/cron.daily/logrotate:

error: columnstore:13 unknown option 'su' – ignoring line
error: columnstore:13 unexpected text
error: columnstore:28 unknown option 'su' – ignoring line
error: columnstore:28 unexpected text

Removing the "su" lines in /etc/cron.daily/logrotate seems to fix it.



 Comments   
Comment by David Hill (Inactive) [ 2018-06-18 ]

The use of 'su' worked on centos 7, but looks like its not supported on centos 6. was able to reproduce the issue

logrotate -f columnstore
error: columnstore:13 unknown option 'su' – ignoring line
error: columnstore:13 unexpected text
error: columnstore:28 unknown option 'su' – ignoring line
error: columnstore:28 unexpected text
[root@ip-172-30-0-72 logrotate.d]#

So as mentioned in the original comment, work-around fix is to remove the lines 'su root root' for root installs

Comment by Otto Kekäläinen [ 2020-05-21 ]

Are you sure 'su' is needed, isn't logrotate running anyway with root level permissions?

Related: https://jira.mariadb.org/browse/MDEV-22659

Comment by Todd Stoffel (Inactive) [ 2022-11-05 ]

This item is being closed because it was well passed the expiration date with no activity. If you suspect this was done in error please create a new ticket.

Generated at Thu Feb 08 02:29:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.