Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping & Starting Samba

Status
Not open for further replies.

sirrom

Technical User
Jul 11, 2001
80
GB
I need to stop & start samba on a remote machine.
However I cant use SWAT because it will not allow the connection.
What command line commands can I use instead.
Thanks in advance.
 
Hi,

The answer depends on how samba is installed - does it use sysv init, local custom start script, or even inetd /xinetd.

Most likely, you'd need to ssh / telnet to the server then kill the 'smbd' and 'nmbd' processes :

killall -SIGTERM smbd
killall -SIGTERM nmbd

to (re)start as a daemon :

/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D

Hope this helps

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top