How to start, restart & stop Samba from the command line?

peterv6's picture
Submitted by peterv6 on Sun, 2007-10-07 15:04.

I've just switched from Red Hat to Ubuntu, and I need to know the commands to bring up, restart & stop the samba server.  I want to do this from the command line.  Please help.


( categories: Ubuntu running as server )
Submitted by myles on Sun, 2007-10-07 16:20.

Start /etc/init.d/samba start
Stop /etc/init.d/samab stop
Restart /etc/init.d/samba restart

leenix's picture
Submitted by leenix on Sun, 2007-10-07 20:16.

just about every service you'll need to stop/start/restart is in /etc/init.d/ in debian-based distros.


peterv6's picture
Submitted by peterv6 on Sun, 2007-11-11 15:43.

Leenix, thank you very much.  Your answer has been extremely helpful.PV


Submitted by robinriordan on Wed, 2007-11-21 23:29.

I have Samba going and have my printer attached to my Ubumtu desktop. I would like to send print print jobs from my windows laptop through the router/dsl attached to the desktop. I have read a lot of suggestions but I do not understand most of them. Could someone try to dummy it down for me? Thanks Robin