LinuxQuestions.org
Review your favorite Linux distribution.
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 03-03-2003, 09:56 AM   #1
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Rep: Reputation: 15
Samba connection refused


i have installed Samba. followed all the steps. i created a simple smb.conf file:
[global]
workgroup = MYGROUP
server string = Samba Server
encrypt passwords = yes
smb passwd file = /usr/local/samba/bin/smbpasswd

[homes]
comment = Home Directories
browseable = no
writable = yes

the smb.conf file is locate in /etc/samba

i created a user, gave that user a password and created a samba password fir that user also. everything seemed to work fine.

i then went and started the smbd and nmbd daemons which are located in the /usr/local/samba/bin directory. i used the following command

cd /usr/local/samba/bin

./smbd -D
./nmbd -D

when i try to run smbclient -L 192.168.1.9 i get the following error:

added interface ip =192.168.1.9 bcast=192.168.1.127 nmask=255.255.255.128
error connecting to 192.168.1.9:139 (Connection refused)
Error connecting to 192.168.1.9 (Connection refused)
Connection to 192.168.1.9 failed

i checked the /etc/services file. it has all the ports assigned in there that it should.

any ideas why?
 
Old 03-03-2003, 10:46 AM   #2
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
Don't know if this is the root of your problem, but....

If I'm not mistaken you are missing a vital part of your smb.conf file....

netbios name=SERVER NAME

That is what you want your machine to be seen as.

My hostname is mychlinux, but I have netbios name set to ENTERPRISE in my smb.conf file.

So when I connect to my linux machine from a windows machine, I use \\ENTERPRISE\SHARE NAME

NOT

\\MYCHLINUX\SHARE NAME


Then again this might not have anything to do with your problem....

GL
 
Old 03-03-2003, 01:46 PM   #3
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
i figured it out. i looked in the /usr/local/samba/var/log.smbd file and it told me that the smb.conf file was located in the wrong place. as soon as i moved the smb.conf file everything worked fine.

thanks for the help
 
  


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
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
connection refused Samba port 139 cbriscoejr Linux - Networking 4 10-14-2004 10:34 AM
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM
SAMBA & SWAT - Connection refused when attempting to connect Localhost:901 ScooterB Linux - Networking 3 12-24-2003 04:15 PM
Samba connection refused kman527 Linux - Networking 5 07-03-2003 09:17 PM

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

All times are GMT -5. The time now is 07:25 AM.

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