[Samba] Samba Time Synchronisation wikipage

Alexei Rozenvaser alexei.roz at gmail.com
Sun Jun 10 09:21:07 UTC 2018


Thank you.
May it be better to add to wiki page instruction to use in
ntpsigndsocket directive of ntpd / chrony config file the path that
received from NTP_SIGND_SOCKET_DIR line of the output of samba -b
command ?
On Sun, Jun 10, 2018 at 11:35 AM Rowland Penny via samba
<samba at lists.samba.org> wrote:
>
> On Sun, 10 Jun 2018 10:29:43 +0300
> Alexei Rozenvaser <alexei.roz at gmail.com> wrote:
>
> > Question according to ntpsigndsocket directive at chrony.config:
> > Is it mandatory from standpoint of Samba to use
> > /usr/local/samba/var/lib/ntp_signd/ path for ntpsigndsocket?
> > Or it possible to use the chrony's default
> > path /var/lib/samba/ntp_signd ?
>
> The wiki is written from the view point of a self compiled Samba
> without setting a prefix. This means that by default, everything ends
> up in /usr/local/samba. Your distro, amongst other things, set the
> prefix and hence things will be in different places.
> If you you run 'samba -b' on a self compiled version of Samba, you
> will get this:
>
>    BINDIR: /usr/local/samba/bin
>    SBINDIR: /usr/local/samba/sbin
>    CONFIGFILE: /usr/local/samba/etc/smb.conf
>    NCALRPCDIR: /usr/local/samba/var/run/ncalrpc
>    LOGFILEBASE: /usr/local/samba/var
>    LMHOSTSFILE: /usr/local/samba/etc/lmhosts
>    DATADIR: /usr/local/samba/share
>    MODULESDIR: /usr/local/samba/lib
>    LOCKDIR: /usr/local/samba/var/lock
>    STATEDIR: /usr/local/samba/var/locks
>    CACHEDIR: /usr/local/samba/var/cache
>    PIDDIR: /usr/local/samba/var/run
>    PRIVATE_DIR: /usr/local/samba/private
>    CODEPAGEDIR: /usr/local/samba/share/codepages
>    SETUPDIR: /usr/local/samba/share/setup
>    WINBINDD_SOCKET_DIR: /usr/local/samba/var/run/winbindd
>    WINBINDD_PRIVILEGED_SOCKET_DIR: /usr/local/samba/var/lib/winbindd_privileged
>    NTP_SIGND_SOCKET_DIR: /usr/local/samba/var/lib/ntp_signd
>
> Whilst on a typical distro package (Devuan):
>
>    BINDIR: /usr/bin
>    SBINDIR: /usr/sbin
>    CONFIGFILE: /etc/samba/smb.conf
>    NCALRPCDIR: /var/run/samba/ncalrpc
>    LOGFILEBASE: /var/log/samba
>    LMHOSTSFILE: /etc/samba/lmhosts
>    DATADIR: /usr/share
>    MODULESDIR: /usr/lib/x86_64-linux-gnu/samba
>    LOCKDIR: /var/run/samba
>    STATEDIR: /var/lib/samba
>    CACHEDIR: /var/cache/samba
>    PIDDIR: /var/run/samba
>    PRIVATE_DIR: /var/lib/samba/private
>    CODEPAGEDIR: /usr/share/samba/codepages
>    SETUPDIR: /usr/share/samba/setup
>    WINBINDD_SOCKET_DIR: /var/run/samba/winbindd
>    NTP_SIGND_SOCKET_DIR: /var/lib/samba/ntp_signd
>
> So in answer to your question, yes you can (and should) use
> '/var/lib/samba/ntp_signd'
>
> >I noticed that on my Ubuntu
> > 18.04 /usr/local/samba/var/lib/ntp_signd/ directory disappears after
> > the machine reboot.
>
> There is a reason for that and it is one of the reasons why I use
> Devuan.
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



-- 
Alexei Rozenvaser



More information about the samba mailing list