Sorry this is a little embarassing but I'm trying to set up my own server for the first time. I found great tutorial online.
I'm stuck at the 2nd to last line of step 4. Apparently there is no samba directory in init.d.
Why isn't there a samba directory in init.d?
Would the following work?
# sudo restart smbd
# sudo restart nmdb 2 5 Answers
Start
sudo service smbd startStop
sudo service smbd stopRestart
sudo service smbd restart 7 Starting with 15.04 and systemd, the command is systemctl restart smbd
You can also do this way:
Start
sudo /etc/init.d/smbd startStop
sudo /etc/init.d/smbd stopRestart
sudo /etc/init.d/smbd restartIf you got an error, try using these commends this nmbd instead.
1you may also try this :
check the name of the service:
service --status-allrestart the service
sudo service samba restart On RHEL you start smb and nmb:
systemctl start smb
systemctl start nmbNext, check if they started:
ps -elf | grep smbd
ps -elf | grep nmbd