[Samba] log.samba missing rotation

Jones Syue jonessyue at qnap.com
Fri May 22 06:11:27 UTC 2020


Looks like a known issue when running samba as AD DC:
https://bugzilla.samba.org/show_bug.cgi?id=9673

Perhaps try logrotate service to help rotate log.samba:
https://linux.die.net/man/8/logrotate

--
Regards,
Jones Syue | 薛懷宗
QNAP Systems, Inc.


On Fri, May 22, 2020 at 12:26 PM Lorenzo Milesi via samba
<samba at lists.samba.org> wrote:
>
> I know about this param, I configured it and log.smbd, log.nmbd and others are rotated, log.samba is not.
>
> ----- Original Message -----
> > From: "samba" <samba at lists.samba.org>
> > To: "Lorenzo Milesi" <maxxer at yetopen.it>, "samba" <samba at lists.samba.org>
> > Sent: Thursday, May 21, 2020 7:29:04 PM
> > Subject: Re: [Samba] log.samba missing rotation
>
> > From man smb.conf:
> >
> > <
> > max log size (G)
> >
> >    This option (an integer in kilobytes) specifies the max size the log
> > file should grow to. Samba periodically checks the size and if it is
> > exceeded it will rename the file, adding a .old extension.
> >
> >    A size of 0 means no limit.
> >
> >    Default: max log size = 5000
> >
> >    Example: max log size = 1000
> >>
> >
> >
> > If you need a more complex rotation, I suppose you will need to configure it
> > with logrotate.
> >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
>
> --
> Lorenzo Milesi - lorenzo.milesi at yetopen.it
>
> YetOpen S.r.l. - https://www.yetopen.it/
> Via Salerno 18 - 23900 Lecco - ITALY -
> Tel +39 0341 220 205 - Fax +39 178 6070 222
>
> Think green - Non stampare questa e-mail se non necessario / Don't print this email unless necessary
>
> -------- D.Lgs. 196/2003 e GDPR 679/2016 --------
> Tutte le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario.
> Tutte le informazioni ivi contenute, compresi eventuali allegati, sono da ritenere confidenziali e riservate secondo i termini
> del vigente D.Lgs. 196/2003 in materia di privacy e del Regolamento europeo 679/2016 - GDPR - e quindi ne e' proibita l'utilizzazione ulteriore non autorizzata.
> Nel caso in cui questo messaggio Le fosse pervenuto per errore, La invitiamo ad eliminarlo senza copiarlo, stamparlo, a non inoltrarlo a terzi e ad avvertirci non appena possibile.
> Grazie.
>
> Confidentiality notice: this email message including any attachment is for the sole use of the intended recipient and may contain confidential and privileged information;
> pursuant to Legislative Decree 196/2003 and the European General Data Protection Regulation 679/2016 - GDPR - any unauthorized review, use, disclosure or distribution
> is prohibited. If you are not the intended recepient please delete this message without copying, printing or forwarding it to others, and alert us as soon as possible.
> Thank you.
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list