Klaus Hartnegg
2017-May-24 13:02 UTC
[Samba] Howto switch from distribution to self compiled?
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.
In switching from pre-compiled to self-compiled packages, we found it easier to just modify the ./configure arguments to point the desired (previous) directories. i.e. ./configure --with-configdir=/etc/samba --sbindir=/usr/sbin --bindir=/usr/bin --with-logfilebase=/var/log/samba --libdir=/usr/lib64 --with-modulesdir=/usr/lib64/samba --with-lockdir=/var/cache/samba --with-statedir=/var/lib/samba --with-cachedir=/var/cache/samba --with-piddir=/var/run/samba --with-privatedir=/var/lib/samba/private (Note: these may not be the same paths as you've listed)
Marc Muehlfeld
2017-May-24 17:12 UTC
[Samba] Howto switch from distribution to self compiled?
Hi Klaus, Am 24.05.2017 um 15:02 schrieb Klaus Hartnegg via samba:> 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).I started 2 weeks ago with a documentation that covers this scenario. However, I didn't had time to finish it yet. If I find time to work on this, I will publish it next week. Regards, Marc