Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-07-2005, 06:10 PM   #1
Registered: Aug 2003
Location: Georgia U.S.A.
Posts: 101

Rep: Reputation: 16
Samba restart command?


How do I restart samba.

I get the following response when I type 'samba restart' at the command line:
'samba: command not found'

Much thanks.
Old 03-07-2005, 06:14 PM   #2
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,311

Rep: Reputation: Disabled
You have to supply the path, like '/etc/init.d/samba restart'
Old 03-07-2005, 06:16 PM   #3
LQ Guru
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
What distro are you using? Try smbd restart.
good luck.
Old 03-08-2005, 07:11 PM   #4
Registered: Aug 2003
Location: Georgia U.S.A.
Posts: 101

Original Poster
Rep: Reputation: 16
Thanks for your responses.

At the command line I typed /etc/samba/init.d samba restart and received the error message :
bash: samba: command not found

I also tried smbd and similarly its not found.

I even changed directory to samba folder but got the same error message.

When I typed /etc/init.d/samba restart, the error message is
'bash: /etc/init.d/samba: No such file or directory'

Any more suggestions?

I'm using Fedora Core2 and the Mozilla Firefox browser.
Old 03-08-2005, 07:46 PM   #5
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
On Fedora it is /etc/rc.d/init.d/smb restart , same for Mandrake and several others.
Old 03-09-2005, 12:13 PM   #6
Registered: Aug 2003
Location: Georgia U.S.A.
Posts: 101

Original Poster
Rep: Reputation: 16

'/etc/rc.d/init.d/smb restart' worked.

Much thanks to you and the rest of the linux community.

Have yourself a great day!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
command to restart services djc Linux - Newbie 3 03-31-2004 02:04 PM
use command vncserver after each restart? ziggie216 Linux - Software 1 11-25-2003 07:54 AM
Restart from Command Line Tezdread Linux - General 3 03-08-2003 07:19 AM
What happened to my restart command? Rampage2884 Linux - General 5 04-10-2002 06:53 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration