Summary: | ASTERISK-17943: Incorrect owner/group log files | ||
Reporter: | Sergio Belkin (sebelk) | Labels: | |
Date Opened: | 2011-05-31 07:12:09 | Date Closed: | 2011-06-22 10:19:57 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Addons/General |
Versions: | 1.6.2.18 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | ${asterisk_sources}/contrib/scripts/asterisk.logrotate has incorrect owner/group: __LOGDIR__/debug __LOGDIR__/console __LOGDIR__/full __LOGDIR__/messages __LOGDIR__/*log { weekly missingok rotate 52 compress delaycompress notifempty create 640 root root sharedscripts postrotate __SBINDIR__/asterisk -rx 'logger reload' > /dev/null 2> /dev/null endscript } This causes asterisk crashes at rotate time ****** ADDITIONAL INFORMATION ****** I haven't found the version 1.6.2.7 that is that currently we use, anyway the script is the same in 1.6.2.18. | ||
Comments: | By: Sergio Belkin (sebelk) 2011-05-31 07:21:10 "root root" should be replaced by "asterisk asterisk" By: Leif Madsen (lmadsen) 2011-06-03 08:25:00 I think this is dependent on whether you're running asterisk as root or non-root. Most installations are installed as root, which is probably why this hasn't been run into before. By: Paul Belanger (pabelanger) 2011-06-22 10:19:57.461-0500 Leif is correct, this really depends on which OS you are running. Since it is in the contrib directory, we'll leave it as root:root. Since most Linux distros default to that. |