how to restart Samba

Asked by Fred Ramos

1st time user of Ubuntu 10.10, installed samba with sudo apt-get install samba, then made changes to /etc/samba/smb.conf
then sudo /etc/init.d/samba restart and i got the following
sudo: /etc/init.d/samba: command not found

Please advise

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

sudo service smbd stop; sudo service smbd start

Should do it

Revision history for this message
Fred Ramos (framos917) said :
#2

Thanks actionparsnip, that solved my question.

Revision history for this message
Fred Ramos (framos917) said :
#3

was I using a old version of command? I installed Ubuntu 10.10

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Essentially yes, use that form for all services now, you can also tab complete service names so you know they are right :)

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

New to Ubuntu: read the Ubuntu Manual, it's very informative: http://ubuntu-manual.org/
Click on the "download Button" to download the latest PDF version.
The online help https://help.ubuntu.com/10.10/index.html

Need help with Unity interface:
http://www.omgubuntu.co.uk/natty/#what
http://theravingrick.blogspot.com/2011/04/my-effort-at-writing-help-for-unity.html

Relax and fun:
http://planet.ubuntu.com/ and Full Circle Magazine http://fullcirclemagazine.org/

Revision history for this message
Fred Ramos (framos917) said :
#6

Thank You, all most helpful