Hello
Change the permissions of “/var/log/mail” (to access zabbix agent) using setfacl.
Everything is perfect until syslog-ng rotate the file, the new rotated, has permission by default.
Is there any way to configure syslog-ng or SLES to maintain the file permissions?
I am using SLES 1 - SP1, with syslog-ng-1.6.8-20.18 and Kernel 2.6.16.46-0.14
You put a script in cron, I can not think of anything else.
Thanks for being up here. (my bad English is due to my inability to properly use google translate)
If logrotate is doing the file rotation I think you can fix this with
the following (from the man 5 logrotate stuff:
create mode owner group
Immediately after rotation (before the postrotate script is run)
the log file is created (with the same name as the log file just
rotated). mode specifies the mode for the log file in octal (the same
as chmod(2)), owner specifies the user name who will own the log file,
and group specifies the group the log file will belong to. Any of the
log file attributes may be omitted, in which case those attributes for
the new file will use the same values as the original log file for the
omitted attributes. This option can be disabled using the nocreate option.
Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
Thanks Guest, Thanks for reading the man for me: (
Permits user, group, others saw in syslog-ng.conf, but does not work because what you lose is a acl.
But you helped me see the obvious, the command postrotate.
In /etc/logrotate.d/syslog placing