[Samba] Howto switch from distribution to self compiled?

Klaus Hartnegg hartnegg at gmx.de
Wed May 24 13:02:04 UTC 2017


Hi,

I want to switch from an old samba 3.6 of a Linux distribution, to a new 
and self compiled samba, which is in different directories 
(usr/local/samba).

Which files do I need to copy from the old place to the new?
Which ones are only temporary files, and can be discarded?

This is from the output of "smbd -b"

old:
    SBINDIR: /usr/sbin
    BINDIR: /usr/bin
    SWATDIR: /usr/share/swat
    CONFIGFILE: /etc/samba/smb.conf
    LOGFILEBASE: /var/log/samba
    LMHOSTSFILE: /etc/samba/lmhosts
    LIBDIR: /usr/lib64
    MODULESDIR: /usr/lib64/samba
    SHLIBEXT: so
    LOCKDIR: /var/lib/samba
    STATEDIR: /var/lib/samba
    CACHEDIR: /var/lib/samba
    PIDDIR: /var/run
    SMB_PASSWD_FILE: /var/lib/samba/private/smbpasswd
    PRIVATE_DIR: /var/lib/samba/private
    NCALRPCDIR: /var/ncalrpc
    NMBDSOCKETDIR: /var/nmbd

new:
    SBINDIR: /usr/local/samba/sbin
    BINDIR: /usr/local/samba/bin
    CONFIGFILE: /usr/local/samba/etc/smb.conf
    LOGFILEBASE: /usr/local/samba/var
    LMHOSTSFILE: /usr/local/samba/etc/lmhosts
    LIBDIR: /usr/local/samba/lib
    MODULESDIR: /usr/local/samba/lib
    SHLIBEXT: so
    LOCKDIR: /usr/local/samba/var/lock
    STATEDIR: /usr/local/samba/var/locks
    CACHEDIR: /usr/local/samba/var/cache
    PIDDIR: /usr/local/samba/var/run
    SMB_PASSWD_FILE: /usr/local/samba/private/smbpasswd
    PRIVATE_DIR: /usr/local/samba/private

The server runs as standalone. I want to switch later to AD.



More information about the samba mailing list