<div dir="ltr">Hi Ahmed,<div><br></div><div>Than you for your suggestion. setfacl solved my permission issues :)</div><div><br></div><div>L:</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 13, 2020 at 1:28 PM Ahmed Soyef <<a href="mailto:Soyef.Ahmed34@homeoffice.gov.uk">Soyef.Ahmed34@homeoffice.gov.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB">
<div class="gmail-m_-5606338533923380056WordSection1">
<p class="MsoNormal"><span>Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Just chiming in here and could be totally off the mark but this sounds like a great candidate for using built in Linux ACLs. Should be able to give the Zabbix user permissions for anything created
in that directory using setfacl.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Soyef<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a>>
<b>On Behalf Of </b>Pal, Laszlo<br>
<b>Sent:</b> 13 July 2020 12:24<br>
<b>To:</b> Syslog-ng users' and developers' mailing list <<a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>><br>
<b>Subject:</b> [syslog-ng] disk buffer files permissions<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">We want to monitor disk-buffer files, so we can detect if there is are some issues with the destinations. syslog-ng creates these files with permissions like this<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">otal 360<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">-rw-------. 1 root root 4096 Oct 10 2019 syslog-ng-00000.qf<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">-rw-------. 1 root root 4096 Jul 12 03:49 syslog-ng-00001.qf<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">So, our monitor script (for zabbix) cannot stat files because it is running under user zabbix. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'm not sure how to submit a feature request nowadays, but it would be great of perm() option added to disk-buffer()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Any chance?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thx<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">L:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
______________________________________________________________________<br>
This email has been scanned by the Symantec Email Security.cloud service.<br>
For more information please visit <a href="http://www.symanteccloud.com" target="_blank">http://www.symanteccloud.com</a><br>
______________________________________________________________________<u></u><u></u></p>
</div>
**********************************************************************<br>
This email and any files transmitted with it are private and intended<br>
solely for the use of the individual or entity to whom they are addressed.<br>
If you have received this email in error please return it to the address<br>
it came from telling them it is not for you and then delete it from your system.<br>
This email message has been swept for computer viruses.<br>
**********************************************************************
</div>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>