Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

http://www.intac.net/build-your-own-server/

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
share|improve this question
1  
If your # means you are logged in as superuser, then you don't need to run the commands with sudo, else the commands you mentioned are fine. – htorque Feb 5 '12 at 12:10

3 Answers

up vote 15 down vote accepted

Start

sudo service smbd start

Stop

sudo service smbd stop

Restart

sudo service smbd restart
share|improve this answer
3  
Why not use the Upstart syntax like mentioned by the user? – htorque Feb 5 '12 at 12:09
Nothing wrong with it. I'm just lazy and sudo <start|stop|status|restart|reload> <job> is just shorter. ;) – htorque Feb 5 '12 at 18:55
@htorque I cant really remember why I made the recommendation like this also, maybe I seen something that ticked me off and I recommended this way, or its just my brain thinking about services all the time. Thx for the input! ;) – Bruno Pereira Feb 5 '12 at 19:08

You can also do this way

Start

sudo /etc/init.d/smbd start

Stop

sudo /etc/init.d/smbd Stop

Restart

sudo /etc/init.d/smbd restart

If u got an error and you think its not working so same do this with nmbd.

share|improve this answer

This article really helped me with PDC configuration.

share|improve this answer
2  
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Also are you aware that the article you've linked to is in Russian? – Octavian Damiean Feb 5 '12 at 12:43

Your Answer

 
discard

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.