Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba Configuration HELP! (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
W3BMAST3R101
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 197

PostPosted: Tue May 17, 2005 1:09 am    Post subject: Samba Configuration HELP! (solved) Reply with quote

I have never had much luck getting samba to work. Here is my config. I keep getting "Connection refused"

[global]
security = share
restrict anonymous = no
domain master = no
preferred master = no
browseable = yes
workgroup = A
max protocol = NT
ldap ssl = No
server signing = Auto

[DISTFILES]
case sensitive = no
guest ok = yes
msdfs proxy = no
create mode = 0777
read only = no
path = /usr/portage/distfiles
hosts allow = 192.168.0.0/255

I want to share my distfiles with every one on the network and I would like them to be able to store their files on there as well to cut down on download time and save the gentoo community bandwidth.


Any help is appreciated.

thnx,

the w3b


Last edited by W3BMAST3R101 on Wed May 18, 2005 2:31 am; edited 1 time in total
Back to top
View user's profile Send private message
drjimmy42
Guru
Guru


Joined: 03 Feb 2003
Posts: 512
Location: Nashua, NH

PostPosted: Tue May 17, 2005 1:19 am    Post subject: Reply with quote

Connection refused usually means the port is closed completely. Are you sure samba is running? Try running nmap on your IP address to see what ports are available.
Back to top
View user's profile Send private message
drjimmy42
Guru
Guru


Joined: 03 Feb 2003
Posts: 512
Location: Nashua, NH

PostPosted: Tue May 17, 2005 1:20 am    Post subject: Reply with quote

Also, with hosts allow, I don't know if the notation you are using works. I know this does though

Code:
hosts allow = 192.168.1. 127. 172.16.
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Tue May 17, 2005 1:22 am    Post subject: Reply with quote

You can go to /var/log/samba this is the place where the logs are stored. If somebody tries to access your machine it will generate a log there and if connection is refused it will explain there why it was refused.

Also maybe you can supply some more information. Can you acces your own shares using smbclient? Just try to that first, does that work yes/no? (Something like smbclient -L //nameofyourcomputer and then smbclient //nameofyourcomputer/nameofshare

What kind of other computers are trying to use your shares, windows/linux?

And it would be really good if you can get the reason for connection refused from your log files.

Good luck
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
W3BMAST3R101
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 197

PostPosted: Tue May 17, 2005 2:28 am    Post subject: Reply with quote

(The 1659 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
139/tcp open netbios-ssn
445/tcp open microsoft-ds
873/tcp open rsync
MAC Address: 00:06:25:A7:67:2C (The Linksys Group)

Nmap run completed -- 1 IP address (1 host up) scanned in 9.808 seconds

thats what i get when i run nmap. Samba is up and running i started it i even ran testparm it had no errors. I still get the same error though and there is nothing in the log... I even changed the hosts allow to what was suggested...

thnx,

the w3b
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Tue May 17, 2005 1:46 pm    Post subject: Reply with quote

So can you access and list your shares from the computer itself? So try to access them locally but via samba... this is always a nice test. (nice test to see if samba is working correctly without to much network stuff)

Furthermore I assume you've tried to ping between the computers, to see if you actually have a connection? And whatabout other network tools like can you ssh in from the other computer?
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
W3BMAST3R101
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 197

PostPosted: Tue May 17, 2005 2:21 pm    Post subject: Reply with quote

smbclient -L //fileserv/distfiles

Domain=[A] OS=[Unix] Server=[Samba 3.0.10]

Sharename Type Comment
--------- ---- -------
DISTFILES Disk
IPC$ IPC IPC Service (Samba 3.0.10)
ADMIN$ IPC IPC Service (Samba 3.0.10)
Domain=[A] OS=[Unix] Server=[Samba 3.0.10]

Server Comment
--------- -------
BIGDADDY BIGDADDY
FILESERV Samba 3.0.10

Workgroup Master
--------- -------
A BIGDADDY

smbclient -L //fileserv/

Domain=[A] OS=[Unix] Server=[Samba 3.0.10]

Sharename Type Comment
--------- ---- -------
DISTFILES Disk
IPC$ IPC IPC Service (Samba 3.0.10)
ADMIN$ IPC IPC Service (Samba 3.0.10)
Domain=[A] OS=[Unix] Server=[Samba 3.0.10]

Server Comment
--------- -------
FILESERV Samba 3.0.10

Workgroup Master
--------- -------
A

I am currently SSHing that computer. I think it has to have something to do with the samba configuration file. I'm not a samba guru so i dont know where i f00ked up if i did.
Back to top
View user's profile Send private message
W3BMAST3R101
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 197

PostPosted: Tue May 17, 2005 2:23 pm    Post subject: Reply with quote

fileserv root # /usr/bin/testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[DISTFILES]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = A
security = SHARE
server signing = auto
preferred master = No
domain master = No
ldap ssl = no
hosts allow = 192.168.0., 192.168.0.0/255 ##did this just to make sure

[DISTFILES]
path = /usr/portage/distfiles
read only = No
create mask = 0777
guest ok = Yes
hosts allow = 192.168.0., 127., 172.16.
case sensitive = No
msdfs proxy = no

I dont know whats wrong with the setup any ideas?
Back to top
View user's profile Send private message
W3BMAST3R101
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 197

PostPosted: Tue May 17, 2005 6:23 pm    Post subject: Reply with quote

Perhaps some one could provide me with a *simple* samba config file as an example? If not then *bump*

thnx,

the w3b
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Wed May 18, 2005 2:01 am    Post subject: Reply with quote

Distfiles is in your listing so the share is available I think. Now try to access it locally (ssh to fileserv en then smbclient //fileserv/distfiles) if this works you know samba is running.
If it doesn't work try smbclient //fileserve/distfile -U <username> and try your password if that works you have a permission problem.
If you do have local access but not remote, it's either the not allowed host, a firewall, or a computer supply inlog data while it shouldn't (windows machines for example)

W3BMAST3R101 wrote:
Perhaps some one could provide me with a *simple* samba config file as an example? If not then *bump*


For some example samba files (I don't run samba where I am atm, but there is more than plenty of material on this forum):

Samba: public share
Samba problem [Solved]
Samba Directory Permissions
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
W3BMAST3R101
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 197

PostPosted: Wed May 18, 2005 2:31 am    Post subject: Reply with quote

Thnx, for some reason my problem fixed itself. I guess it was my network. Thanks for your help guys. :-D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum