How to restart samba server?
Start
sudo service smbd start
Stop
sudo service smbd stop
Restart
sudo service smbd restart
You can also do this way:
Start
sudo /etc/init.d/smbd start
Stop
sudo /etc/init.d/smbd stop
Restart
sudo /etc/init.d/smbd restart
If you got an error, try using these commends this nmbd instead.
Starting with 15.04 and systemd, the command is systemctl restart smbd