Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388939 - media-sound/squeezeboxserver-7.5.5: logrotate fails
Summary: media-sound/squeezeboxserver-7.5.5: logrotate fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joe Peterson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-30 09:28 UTC by Tom Hendrikx
Modified: 2011-11-07 21:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Logrotate configuration fix (0001-Fix-log-rotation-configuration.patch,19.09 KB, patch)
2011-11-01 23:07 UTC, Stuart Hickinbottom
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hendrikx 2011-10-30 09:28:37 UTC
Output from logrotate:

error: skipping "/var/log/squeezeboxserver/scanner.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.
error: skipping "/var/log/squeezeboxserver/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.
error: skipping "/var/log/squeezeboxserver/perfmon.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.

This is caused by a logrotate update: older versions did not complain about this 'issue'. The correct fix would be to either:
- include the statement "su squeezeboxserver" in the logrotate script.
- execute 'chmod 750 /var/log/squeezeboxserver'
Comment 1 Stuart Hickinbottom 2011-11-01 23:07:32 UTC
Created attachment 291491 [details, diff]
Logrotate configuration fix

Thanks for reporting that and, even more, for telling me how to fix it!

Attached is a patch to fix the logrotation failure. I've added "su squeezeboxserver squeezeboxserver" to indicate the owner/group to rotate as.

Joe - the patch also includes a bumped ebuild to 7.5.5-r1 - this is identical to the 7.5.5 version but exists because the bump should cause a re-emerge for people on 7.5.5 otherwise they're left with non-rotating logs that they probably don't know anything about.
Comment 2 Joe Peterson (RETIRED) gentoo-dev 2011-11-07 21:42:39 UTC
Fixed - thanks to Stuart and Tom!