LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-13-2006, 01:14 PM   #1
Argo
LQ Newbie
 
Registered: Jul 2006
Location: Canada
Distribution: Red Hat, CentOS, Fedora
Posts: 11

Rep: Reputation: 0
Samba reporting no route to host


Greeting all,

I am currently running CentOS 4.2 and I know about enough to be fairly dangerous.

One of my main issues right now seems to be with my samba install.

Where I am we have a handfull of Linux and windows machines in a workgroup, and it work fine. The other day we connected a CentOS machine onto the network and tried adding it into the smbtree. When I am on this new server, ill call it RAIN, and I run smbtree I get no results, which tells me that it is not on the samba system. When I run smbclient -L rain i get a list of avaliable shares in the server. If I go to a server that works that is on the network, I'll call this one SNOW, and run the same commands, the listing in the smbtree for RAIN says:

\\RAIN Rain Samba Server
Error connecting to 192.168.1.21 (No route to host)
cli_full_connection: failed to connect to RAIN<20> (192.168.1.21)


My first thought was that there was an error on the network, but both servers can ping and ssh to each other fine.

I also observed that if I am sitting on RAIN and type smbclient -L snow I get the list of shares that SNOW has avaliable.

I also observed that when I am sitting at RAIN and run smbclient to a share that exists on SNOW, it asks for a password and then sends me to the smb : /> prompt, which I find odd because one way says theres no route to host and the other works fine.

I've check the iptables on both servers and there dosent seem to be anything that would be preventing there communication. I also ran testparm smb.conf on both servers to see if my configuration file had errors in it, but testparm didn't report any.

I checked the the fourms to see if anyone else had the same problem but couldnt find anything, but I could have missed a post somewhere. If anyone might happen to have a clue to why this is occuring or knows if a post with this similar problem is, I would muchly appericate it.

-Joseph
 
Old 07-13-2006, 01:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

And welcome to LQ.

I'd suggest having a good look at the smb.conf on the new machine. Check the
workgroup
hosts allow
interfaces
wins & dns settings

to begin with.


Cheers,
Tink
 
Old 07-13-2006, 03:13 PM   #3
Argo
LQ Newbie
 
Registered: Jul 2006
Location: Canada
Distribution: Red Hat, CentOS, Fedora
Posts: 11

Original Poster
Rep: Reputation: 0
I looked over my smb.conf file a couple of times, made a few changes, restarted smb, and I am still having the same issue. I even tried copying a conf file from onr of the servers that works and make a few changes to reflect the new server, but that didnt work. Since I am uncertain about what else might need to be aded to the conf file, Ill just post it here.

[root@rain samba]# testparm smb.conf
Load smb config files from smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[cmc ftp]"
Processing section "[samba_test]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = WORKGROUP
server string = Rain Samba Server
map to guest = Bad User
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
domain master = No
dns proxy = No
hosts allow = 192.168.1., 127.
cups options = raw

[homes]
comment = Home Directories
read only = No
veto files = /.*/
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[cmc ftp]
comment = cmc ftp
path = /home/ftpusers/amis
guest ok = Yes
printable = Yes

[samba_test]
comment = samba test share
path = /samba_test
read only = No
guest ok = Yes

Hopefully this will be of some help.

-Joseph
 
Old 07-14-2006, 12:37 PM   #4
Argo
LQ Newbie
 
Registered: Jul 2006
Location: Canada
Distribution: Red Hat, CentOS, Fedora
Posts: 11

Original Poster
Rep: Reputation: 0
I figured out my problem. Apparently the firewall was the problem was rejecting the requests....not sure why I didnt think of that sooner.

-Joseph
 
  


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
How do I go about reporting an attempt to compromise my host? drkstr Linux - Security 20 06-13-2006 06:36 AM
no route to host vito_huang Linux - Newbie 6 06-14-2005 09:10 AM
no route to host nerdboi Linux - Networking 9 02-08-2005 06:40 AM
No Route To Host Que Linux - General 10 08-19-2002 08:22 AM
internet to a single host through route; and samba :) Mux Linux - Networking 3 05-08-2002 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 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