<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Thorsten,<div><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 1:17 PM Thorsten Glaser <<a href="mailto:t.glaser@tarent.de">t.glaser@tarent.de</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">Hi,<br>
<br>
how can we make it so that a service that uses LogsDirectory<br>
has its logs readable by group adm?<br>
<br>
There is “LogsDirectoryMode=750” which we could change to 2750,<br>
but no way to set the group to adm, and from what I’ve read,<br>
pre-creating the /var/log/tomcat9 (in this case) as 2750 tomcat:adm<br>
will just make systemd chgrp it recursively?<br>
<br>
Having logs readable by group adm is customary on Debian, so how<br>
can this be implemented for non-sysvinit users?<br><br></blockquote><div><br></div><div>You can ship a tmpfiles snippet like:</div><div><br></div><div>d /var/log/tomcat9 2750 root adm -<br></div></div><div><br></div><div>If you ship this, there is no need for a LogsDirectory= entry.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><br>Saludos,<br>Felipe Sateler</div></div></div>