LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-15-2008, 10:19 AM   #1
chrisyuen
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Rep: Reputation: 0
Unhappy Samba Server Connection Problem


My office has a Samba Server (Samba) running on a Red Hat Linux 9 System for File and Printer Sharings.

All of our workstations are running on Windows XP Professional System.

Recently, some workstations can connect to Samba while others can't.

I restarted the interconnecting switches and Samba itself but got the same result.

I checked the workstation that can't connect to Samba and found that it can ping to Samba with very fast response.

However, when I tried to stroke the command "\\Samba" under "My Computer" but got the result of "Can't find the computer.".

I tried again using IP Address of the Samba "\\192.168.x.x" but got the same result.

Can anyone tell me how to solve this problem?

Thank you very much!

Best Regards,
Chris.

Last edited by chrisyuen; 09-15-2008 at 10:23 AM.
 
Old 09-15-2008, 10:33 AM   #2
bob_man_uk
Member
 
Registered: Jul 2003
Location: Malta
Distribution: Ubuntu/Windows/Mac
Posts: 83

Rep: Reputation: 16
do you know how the machines are set up? domain or workgroups?

sounds like a networking issue to me.
 
Old 09-15-2008, 11:05 AM   #3
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
What about firewalls? Are the firewalls all set up to allow samba connections? Try turning the firewalls off. But don't leave them this way!! If this is the problem, add an exception in the firewall.
 
Old 09-15-2008, 08:10 PM   #4
chrisyuen
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bob_man_uk View Post
do you know how the machines are set up? domain or workgroups?

sounds like a networking issue to me.
Yes, however, the workstations were not set up by myself.

They will join into the domain controller first (Windows Server 2003).

Once they logged in, they will run a startup batch file with the command "net use z: \\samba\share".

The command will fail for some computers and drive z won't be occurred.

I have already checked the "hosts allow" in "smb.conf" and
the range has totally covered all the computers inside the DHCP controller in domain controller.
 
Old 09-15-2008, 08:22 PM   #5
chrisyuen
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by CRC123 View Post
What about firewalls? Are the firewalls all set up to allow samba connections? Try turning the firewalls off. But don't leave them this way!! If this is the problem, add an exception in the firewall.
Did you mean the firewall setting in these workstations (Windows XP Professional)?

Which one should I add in the exception inside the firewall setting?

Thank you very much!
 
Old 09-15-2008, 11:37 PM   #6
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by chrisyuen View Post
Did you mean the firewall setting in these workstations (Windows XP Professional)?

Which one should I add in the exception inside the firewall setting?

Thank you very much!
Since some workstations are connecting fine, I will guess that the firewall on the SAMBA server is fine. The firewalls on the xp machines that are trying to connect to the samba server need to have their firewalls checked. The easiest thing to do is to temporarily disable the firewall on the xp clients that do not work and try to connect to the samba share. If you can connect while the firewall is disabled, then the problem is the firewall and you will need to add an exception on the XP firewall.
 
Old 09-19-2008, 11:54 PM   #7
chrisyuen
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by CRC123 View Post
Since some workstations are connecting fine, I will guess that the firewall on the SAMBA server is fine. The firewalls on the xp machines that are trying to connect to the samba server need to have their firewalls checked. The easiest thing to do is to temporarily disable the firewall on the xp clients that do not work and try to connect to the samba share. If you can connect while the firewall is disabled, then the problem is the firewall and you will need to add an exception on the XP firewall.
Thank bob_man_uk & CRC123 very much!

I fixed the problem recently.

The reason was come from the "hosts allow" in smb.conf.

As I wrote before I have checked the "hosts allow" in smb.conf, however, I figured out that the computers with connection problem to Samba Server were having different host number with the computers without connection problem to Samba Server.

The IP Addresses were acquired from the DHCP Server under Windows Server 2003.

DHCP Server helped us a lot in IP Address management, but sometimes it failed.

Finally, I extended the range of "hosts allow" and everything works properly right now.
 
  


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
Windows machine connection to Samba server is intermittent... hollywoodb Linux - Server 1 07-20-2007 06:53 AM
Samba heal thyself: connection problem disappears? LarryFrigginWachs Linux - Networking 1 12-29-2005 10:20 AM
SAMBA connection problem? alirezan1 Linux - Networking 1 12-21-2004 08:18 AM
Samba and Windows XP restore connection problem SirJohnWackness Linux - Networking 1 12-17-2004 07:16 AM
Samba--Connection Problem Spotnik Linux - Networking 1 06-08-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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