[Samba] log.ham01.16.16.16.16.16.16.16.16.16.16.16.16.16.16.16

Daniel Betschart dbet1 at gmx.net
Tue Oct 26 17:38:15 UTC 2021


Am Dienstag, dem 26.10.2021 um 14:45 +0200 schrieb L.P.H. van Belle via
samba:
> What is logrotate showing for settings for samba log rotates?
The unmodified file /etc/logrotate.d/samba from the package samba.

/var/log/samba/log.smbd {
        weekly
        missingok
        rotate 7
        postrotate
                [ ! -x /usr/bin/smbcontrol ] || [ ! -f
/var/run/samba/smbd.pid ] || /usr/bin/smbcontrol smbd reload-config
        endscript
        compress
        delaycompress
        notifempty
}

/var/log/samba/log.nmbd {
        weekly
        missingok
        rotate 7
        postrotate
                [ ! -x /usr/bin/smbcontrol ] || [ ! -f
/var/run/samba/nmbd.pid ] || /usr/bin/smbcontrol nmbd reload-config
        endscript
        compress
        delaycompress
        notifempty
}

/var/log/samba/log.samba {
        weekly
        missingok
        rotate 7
        postrotate
                if [ -d /run/systemd/system ] && command systemctl
>/dev/null 2>&1 && systemctl is-active --quiet samba-ad-dc; then
                        systemctl kill --kill-who all --signal=SIGHUP
samba-ad-dc
                elif [ -f /var/run/samba/samba.pid ]; then
                        # This only sends to main pid, See #803924
                        kill -HUP `cat /var/run/samba/samba.pid`
                fi
        endscript
        compress
        delaycompress
        notifempty
>
>
> > -----Oorspronkelijk bericht-----
> > Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> > Daniel Betschart via samba
> > Verzonden: dinsdag 26 oktober 2021 13:00
> > Aan: samba at lists.samba.org
> > Onderwerp: Re: [Samba]
> > log.ham01.16.16.16.16.16.16.16.16.16.16.16.16.16.16.16
> >
> > Am 19.10.2021 um 17:20 schrieb Rowland Penny via samba:
> > > On Tue, 2021-10-19 at 17:05 +0200, Daniel Betschart via samba
> > > wrote:
> > > > Am 19.10.2021 um 15:57 schrieb Rowland Penny via samba:
> > > > > On Tue, 2021-10-19 at 15:39 +0200, Daniel Betschart via samba
> > > > > wrote:
> > > > > > Please see the attachment. The log level = 0 I have set
> > > > > > yesterday,
> > > > > > before it was 1.
> > > > >
> > > > > Is this supposed to be a Unix domain member ?
> > > > >
> > > > > If so, remove these lines:
> > > > >
> > > > >    server role = standalone server
> > > > >    unix password sync = yes
> > > > >    passwd program = /usr/bin/passwd %u
> > > > >    passwd chat = *Enter\snew\s*\spassword:* %n\n
> > > > > *Retype\snew\s*\spassword:* %n\n
> > > > > *password\supdated\ssuccessfully*
> > > > > .
> > > > >    pam password change = yes
> > > > I have commented it out now.
> > Unfortunately, it does not help to deactivate these settings. I've
> > discovered that Samba reloads every 5 minutes or so. The following
> > message can then be found in the system log.
> > Oct 26 12:24:21 hamserv07 systemd [1]: Reloading Samba SMB daemon.
> > > > A question to server role: I assumed it *has* to be one of the
> > > > following: standalone server, member server or active directory
> > > > domain
> > > > controller?
> > >
> > > Quite true, but they are quite different things. A
> > 'standalone server'
> > > is just that, it is a server that stands alone and cannot
> > be a member
> > > of a domain (think Windows Home edition). A 'member server'
> > is a Unix
> > > member of a domain and an 'active directory domain controller is
> > > ,
> > > well, just that, an AD DC.
> > >
> > > > > Also, you really shouldn't have a share with the same name as
> > > > > the
> > > > > workgroup.
> > > > The share was already existent on a SBS 2011, so I have it
> > also under
> > > > Samba.
> > >
> > > Still not a good idea.
> > >
> > > > > Finally, this list strips attachments, so you should post you
> > > > > conf
> > > > > file
> > > > > into the post.
> > > > I am sorry, on most portals it is vice versa.
> > >
> > > Yes, we try to be different :-D
> > >
> > > Rowland
> > >
> > >
> > >
> >
> > --
> > 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