Since Samba 3.6 finally became end-of-life on FreeBSD, I’ve been forced to upgrade to Samba 4 on my servers. Luckily, it was a relatively painless update.
# portmaster -o net/samba43 samba36-3.6.25_1 # mv /usr/local/etc/smb.conf /usr/local/etc/smb4.conf # mv /usr/local/etc/samba/* /var/db/samba4/private/
You can now restart Samba with the command:
# service samba_server start
Of course, this is for Samba configurations with simple workgroup settings and the smbpass backend. If you’re using a domain or a different password system, upgrading might be more involved. But then again, it may not be.