try this to add samba4 exectuable to your Path do this from a ssh client like putty, and then open putty and enter your ip address of your debian computer, and click ssh and click open. Then login to your ssh server on linux(through putty.) and put this in the command line excally: PATH=/usr/local/samba/sbin:$PATH Make sure that you press enter when you copy and paste it in putty.