After upgrading, you may see one of the following error messages:
(...) eventhandler /opt/monitor/op5/smsreceive/smsreceiver/smsreceiver.php cannot be read: Permission denied
Stats directory /var/log/smsd_stats is not writable.
These issues both stem from configurations made in
/etc/smsd.conf in combination with a recent change in OP5 Monitor.
What caused the issue
In OP5 Monitor 8.0.7 we released a patch to smstools, to run the daemon smsd as a non-root user. This was done in order to follow security best practices.
Unfortunately this caused two problems:
1) In OP5 Monitor installations that has been installed prior to September 2013, the smsd.conf file included a setting, which saves some statistics to a directory on the server. This configuration option was removed from the default configuration file, as these statistics are not used by OP5 monitor. After the update to the smstools package released with 8.0.7, the smsd daemon could no longer read these stats files, due to them being owned by root. This problem should only occur for users who did the an OP5 installation prior to September 2013, or who have manually added the configuration option:
2) For users which has setup functionality to acknowledge problems using sms, there was a problem with permissions on the PHP event handler files. These were owned by monitor:apache and as such could not be read/executed by the smsd daemon as it is now running as the smstools user.
The following changes have been released as a hotfix.
- When updating to the new package, the statistic files located at /var/log/smsd_stats will have their permissions changes to be owned by the smstools user, to ensure that the smsd daemon can write to the files.
- The smstools user will be added to the apache group, ensuring the smsd daemon can execute the eventhandler, and furthermore the smsreciever log file located at: /opt/monitor/var/smsreceiver.log will have the ownership changed to the smstools user.
Please run the following to ensure you have the newest version of these two packages:
# yum update smsreceiver smstools
Please sign in to leave a comment.