LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-18-2005, 08:39 AM   #1
djzanni
Member
 
Registered: Dec 2003
Location: Washington, DC
Distribution: Ubuntu 7.04
Posts: 73

Rep: Reputation: 15
samba won't start


I'm trying to network my printer, which is on my linux mandrake 10 system, with a Win 2k machine on my home LAN.

Problem is that I can't get SAMBA to even start. When I run "samba start" I get an OK, but it fails when I try to run stop, and when I check the status, this is what I get.

smbd dead but pid file exists
nmbd (pid 2360) is running...

I also can't seem to use SWAT. I get nothing when I go to http://localhost:901

I checked the log file for samba (/var/log/samba/smbd.log) and this is what I get:

[2005/01/17 12:00:22, 0] lib/util_sock.c:open_socket_in(708)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use

Also, when I shut down the computer it always seems to fail to shut down SMB and NMB services.

Any ideas?

Thanks in advance.

~daveZ
 
Old 01-18-2005, 09:11 AM   #2
noeffred
Member
 
Registered: Mar 2004
Location: Austria
Distribution: Ubuntu 6.0.6, CentOS, Fedora, Debian
Posts: 47

Rep: Reputation: 15
Quote:
[2005/01/17 12:00:22, 0] lib/util_sock.cpen_socket_in(708)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
This means that you have some program already running on this port. Maybe you have a another Samba server already running or something like that. Just a suggestion.
 
Old 01-18-2005, 11:35 AM   #3
djzanni
Member
 
Registered: Dec 2003
Location: Washington, DC
Distribution: Ubuntu 7.04
Posts: 73

Original Poster
Rep: Reputation: 15
Hmmm... Well how do I find out what it is already running? You have a command up your sleave that I can use?
~daveZ
 
Old 01-18-2005, 01:20 PM   #4
noeffred
Member
 
Registered: Mar 2004
Location: Austria
Distribution: Ubuntu 6.0.6, CentOS, Fedora, Debian
Posts: 47

Rep: Reputation: 15
sure

Give this a shot (just after a fresh boot for example)
Code:
ps -A | grep smb
if you get something like
Code:
 2493 ?        00:00:00 smbd
 2502 ?        00:00:00 smbd
you already have Samba running.
 
Old 01-18-2005, 04:38 PM   #5
djzanni
Member
 
Registered: Dec 2003
Location: Washington, DC
Distribution: Ubuntu 7.04
Posts: 73

Original Poster
Rep: Reputation: 15
You are a beautiful, beautiful man!

It works! It was VMware that was using it. So I mearly uninstalled VMware since I'm not using it and voila.

Thanks very much.

~daveZ
 
  


Reply



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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
how do i start samba Alexander.s Linux - Newbie 3 01-13-2005 06:08 PM
Installed the wrong SAMBA packages.Now samba doesn't start Terrence Hinds Linux - Networking 3 10-11-2004 03:40 AM
[SAMBA] No start-up bjwesselink Linux - Newbie 3 09-24-2003 05:30 PM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration