Results 1 to 3 of 3

Thread: setting up and restarting samba

  1. #1
    Join Date
    Feb 2011
    Beans
    8

    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 https://help.ubuntu.com/9.10/serverg...ileserver.html

    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
    Beans
    3
    Distro
    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
    Beans
    Hidden!
    Distro
    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:

    Code:
    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...

Bookmarks

Posting Permissions

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