LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-15-2002, 09:43 PM   #1
dahoule
LQ Newbie
 
Registered: Apr 2002
Location: New Jersey
Distribution: Redhat 7.2
Posts: 5

Rep: Reputation: 0
Question Restarting samba service


I am fairly new to Linux and VERY new to Samba. I've been pretty successful with my latest go-round but I seem to have forgotten a command that I used a while back.

I ran across a command somewhere for restarting Samba services on Redhat 7.2.

It was something like "service -? smb" or something like that.

I've searched this forum and all over the Web, but I can't find this command. Using "samba restart" doesn't seem to work, I just get "command not found".

Any suggestions?

Thanks in advance!
 
Old 04-15-2002, 09:46 PM   #2
aveng0
LQ Newbie
 
Registered: Apr 2002
Location: Montreal
Distribution: Debian
Posts: 7

Rep: Reputation: 0
I dont remember how it was in Redhat, but you can try:
/etc/init.d/samba restart
or /etc/rc.d/init.d/samba restart

thats all i know though

---

David
 
Old 04-15-2002, 10:34 PM   #3
tobymiller
LQ Newbie
 
Registered: Mar 2002
Location: Columbus, Ohio
Distribution: Redhat
Posts: 5

Rep: Reputation: 0
just in case you haven't figured it out from aveng0's suggestion yet:

su to root
/etc/rc.d/init.d/smb restart

Toby
 
Old 04-16-2002, 06:37 AM   #4
dahoule
LQ Newbie
 
Registered: Apr 2002
Location: New Jersey
Distribution: Redhat 7.2
Posts: 5

Original Poster
Rep: Reputation: 0
When I try either of these, I get "command not found"!

It's making me nuts! That's why I was asking for that other command that had "service" in it. That's the only one that I got to work previously. Unfortunately, I didn't write the command down!

I will have time on Thursday to really play around with with this, so maybe I can come up with the right command then.

thanks,
 
Old 04-16-2002, 07:36 AM   #5
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 600

Rep: Reputation: 32
Lightbulb well i had that before

just type:

/etc/init.d/smb restart

or the other thing but,
do not forget the `/`
at the beginning,
and trie to do the most of the typing with the tab-key!
 
Old 04-16-2002, 07:51 AM   #6
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian
Posts: 717

Rep: Reputation: 32
smbd not smb
 
Old 04-16-2002, 04:50 PM   #7
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
For Redhat, it should be:
/sbin/service smb restart

Quote:
Originally posted by hanzerik
smbd not smb
In that case, don't forget nmbd too.
 
Old 04-16-2002, 05:36 PM   #8
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian
Posts: 717

Rep: Reputation: 32
I'm not sure, but I beleave in redhat that if you restart smbd it will also restart nmbd automatically. I use samba on slackware using inetd to start it so i'm not sure
 
Old 02-15-2010, 01:16 PM   #9
gkiran.ch
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
Smile

/sbin/service smb restart should work.


Kiran
 
Old 02-16-2010, 06:51 PM   #10
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
gkiran.ch: Please don't resurrect 8 year old posts. Thank you.
 
Old 05-06-2010, 01:57 PM   #11
gkiran.ch
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
Smile

Quote:
Originally Posted by jschiwal View Post
gkiran.ch: Please don't resurrect 8 year old posts. Thank you.
Hey Thanks but the post may be 8 yrs old but i thought if i would post my method then it will be useful to someone who will be searching for it on web.
 
Old 06-29-2012, 03:41 PM   #12
IanWood
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
I did find it useful, thanks for resurrecting it.
 
Old 08-28-2012, 12:53 AM   #13
hamidi2
Member
 
Registered: Aug 2012
Posts: 61

Rep: Reputation: Disabled
the best is to:
restart smbd
of course, after granting root access.
 
Old 12-11-2012, 11:17 AM   #14
rizq
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
SUSI way

Try
Service samba start
ofcourse at root
 
  


Reply


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
Samba nmb service gets down hardeep_ubhi Linux - Networking 0 08-29-2005 12:39 AM
Restarting DNS Service in Slackware jademan83 Linux - Networking 1 05-27-2005 08:25 PM
couldn't find service c$ Samba psmaglik Linux - General 0 07-13-2004 01:34 PM
Starting and Restarting the Apache service. johann519 Fedora 6 02-05-2004 11:00 PM
Restarting samba Steave Linux - General 3 07-28-2001 05:51 PM


All times are GMT -5. The time now is 06:59 AM.

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