This is a quick tutorial on installing samba v4 on FreeBSD pkg install samba4   For a typical desktop, add the following line to /boot/loader.conf, then reboot the system: kern.maxfiles=”25000″   How to start: * Your configuration is: /usr/local/etc/smb4.conf * All the relevant databases are under: /var/db/samba4 * All the logs are under: /var/log/samba4 *

If you are seeing something on FreeBSD along the lines of: URL error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed the following fix is for you.  Apparently in pythons infinite wisdom they have decided to change the location they look for the CA certificate.  Simple fix is to run the following as root:   ln -s /usr/local/etc/ssl/cert.pem