Anacron job cron daily
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and Plesk
  1. kirk
  2. Friday, 13 March 2020
  3.  Subscribe via email
Good morning all

I have centos obsidian installed

i also have imunify360 installed with ossec

im getting daily log rotate errors


error: stat of /var/ossec/logs/active-responses.log failed: Permission denied
error: stat of /var/ossec/logs/ossec.log failed: Permission denied

folder permissions are as follows

/var/ossec root ossec 550

/var/ossec/logs ossec ossec 770

/var/ossec/logs/active-response.log ossec ossec 664
/var/ossec/logs/ossec.log ossec ossec 664

This is the content of the file responsible for the rotation which is /etc/logrotate.d/ossec-hids

/var/ossec/logs/active-responses.log {
create 0664 ossec ossec
su ossec ossec


/var/ossec/logs/ossec.log {
create 0664 ossec ossec
su ossec ossec


if i change su ossec ossec to root root the rotation happens but i still receive the permission denied error every day via email

does anyone know why this is happening and how to solve this
Rate this post:
  1. 13.03.2020 13:03:14
  2. # 1
Sergey Khristich Accepted Answer
Posts: 504
Joined: 20.05.2019
Thank you for reaching out! To help you with this question we need a little bit more information, please create a ticket here and technical experts will help you asap.
If you have any other questions, feel free to ask here.
Thank you for contacting us.
Marketing Manager
  • Page :
  • 1

There are no replies made for this post yet.
Be one of the first to reply to this post!
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.

EU e-Privacy Directive

We use cookies to ensure you get the best experience using our website and services. Read more about it in our Privacy Policy. Please agree to the use of cookies to proceed. Alternatively, you may disable cookies in your browser at any time.

You have declined cookies. This decision can be reversed.

You have allowed cookies to be placed on your computer. This decision can be reversed.