Errors

jet1972

Verified User
Joined
Jul 8, 2011
Messages
204
Hi.

Got this to root mail:

/etc/cron.daily/logrotate:
error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log '
error: skipping "/var/www/html/squirrelmail/data/squirrelmail_access_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.
run-parts: /etc/cron.daily/logrotate exited with return code 1
run-parts: /etc/cron.daily/sa-update exited with return code 1

Running on Debian 7.

How to fix these problems?

Kind regards,
Jan
 
The second problem you can probably fix by setting the correct permissions.
Code:
chown webapps:webapps /var/www/html -R

I don't know why the mysql logs are not written and what they are doing there. You might also check the permissions of those files. If not present, create them and chown them to the user under which mysql is running, often mysql.
 
Back
Top