[Samba] Logging.

Rowland Penny
Tue, 05 Jul 2022 19:43:25 -0000

On Tue, 2022-07-05 at 22:34 +0300, Hussam Al-Tayeb via samba
wrote:
> On Tue, 2022-07-05 at 19:06 +0100, Rowland Penny via samba wrote:
> > On Tue, 2022-07-05 at 14:21 +0300, Hussam Al-Tayeb via samba wrote:
> > > Hello. I am using samba 4.16.2
> > > There are various log files in /var/log/samba/ that are publicly
> > > readable.
> > > Is it possible to change the permissions of the generated logs of
> > > completely forward all logging to syslog/journald?
> > >
> > > Thank you.
> >
> > You do not mention what OS this on, but on Debian, while there are
> > files in /var/log/samba that are world readable, the world cannot
> > enter
> > /var/log/samba to read them, only 'root' and members of the
'adm'
> > group
> > can enter.
> >
> > Rowland
> >
> >
> >
> It's Arch Linux. The permissions of /var/log/samba are set by the
> package to 0755.

Then it looks like an Arch problem:

On Debian:

ls -ld /var/log/samba/
drwxr-x--- 3 root adm 4096 Jul  3 07:54 /var/log/samba/

Which to me is '0750'

Rowland