#wget https://download.samba.org/pub/samba/stable/samba-4.11.0.tar.gz #tar -zxf samba-4.11.0.tar.gz #cd samba-4.11.0 #./configure --with-systemd --with-winbind #make && make install #echo 'pathmunge /usr/local/samba/bin/' > /etc/profile.d/custompath.sh #chmod +x /etc/profile.d/custompath.sh #. /etc/profile #nano /etc/systemd/system/samba.service [Unit] Description= Samba 4 Active Directory After=syslog.target After=network.target [Service] Type=forking PIDFile=/usr/local/samba/var/run/samba.pid ExecStart=/usr/local/samba/sbin/samba [Install] WantedBy=multi-user.target