Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have changed the config file, but changes are not appearing. Do I have to restart Samba?

share|improve this question

sudo /etc/init.d/samba restart should be all you need to do.

share|improve this answer
sudo service samba restart sudo service samba restart. Looks like windows :)) – kolypto Dec 9 '09 at 7:16

It looks like ubuntu has changed the name of the service you need to restart to smbd. For me (on ubuntu server 12.04) the correct command was

sudo service smbd restart

Editor's notes: I can't comment, or this would be a comment to the above answer. I realize this is an old question, but I landed here looking for the very same thing, and the comment was enough of a hint to me to figure out the rest, so I thought I'd record the update.

share|improve this answer

In a production environment it's not advisable to restart a service for just configuration changes. I suggest you go with:

sudo service smbd reload

Whats the advantage of reload?

Reload will just update the configuration changes, with out restarting the service.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.