Results 1 to 3 of 3

Thread: setting up and restarting samba

  1. #1
    Join Date
    Feb 2011

    setting up and restarting samba

    Hi. i am trying to get samba working on my ubuntu server box and i am having issues trying to restart the samba server.

    what happens is that when i type "sudo /etc/init.d/samba restart" i get an error saying this:

    sudo: /etc/init.d/samba: command not found

    i followed teh exact guide from here

    i then browsed in the /etc/init.d/ location and could not find samba there! however, there is a /etc/samba/smb.conf file as i was able to edit it fine.

  2. #2
    Join Date
    Jul 2008
    Ubuntu 8.04 Hardy Heron

    Re: setting up and restarting samba

    the service name for samba is smbd
    try the following command:

    sudo service smbd restart

    that should do it for you. You can also stop or start the service by replacing restart with stop or start respectively.

    good luck!

  3. #3
    Join Date
    Oct 2009
    Ubuntu 16.04 Xenial Xerus

    Re: setting up and restarting samba

    Samba has two parts in Ubuntu - smbd and nmbd.

    You can manage them with this command:

    sudo service smbd start|stop|restart
    sudo service nmbd start|stop|restart
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts