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