-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log rotate on logfiles on content disk #33
Comments
Hey! A possible solution to have permissions in NTFS would be to create an ext4 image in the device:
This way, we have permissions and the logs are in the volume, this can be added to the If you want I can take care of adding this to ansible 👍 Do we already have the logrotate definition? I can't find it:
|
In order to have logrotate enabled on the log files on the content disk to make sure the log files don't take up too much diskspace a cmod og-w is needed, but it doesn't work:
logrotate restart:
Jan 29 00:13:55 elimupi logrotate[8340]: error: skipping "/mnt/content/www_log/*.log" because parent directory has insecure permissions (It's world writable or writable by group which is no Jan 29 00:13:55 elimupi systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
a fix would be this but it doesn't work:
pi@elimupi:~/elimupi2.0 $ sudo chmod -v og-w /mnt/content/www_log mode of '/mnt/content/www_log' changed from 0777 (rwxrwxrwx) to 0755 (rwxr-xr-x) pi@elimupi:~/elimupi2.0 $ sudo chmod -v og-w /mnt/content/www_log mode of '/mnt/content/www_log' changed from 0777 (rwxrwxrwx) to 0755 (rwxr-xr-x)
The text was updated successfully, but these errors were encountered: