LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-30-2007, 04:41 PM   #1
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
Vista issues with SMB, fixed with rinetd


Just a brief 'HowTo' if anyone seems to be having issues with Microsoft Vista and file sharing.

If you are having trouble with Vista connecting to a file or print server which uses Samba, it may be due to two reasons. Vista wants to use the new Samba protocol to make this happen, and there is a work-around here about it:
http://forums.microsoft.com/MSDN/Sho...60925&SiteID=1

However, our office's Vista Business Edition did initially work with this but it STOPPED working after a MS update. We have no idea why, nor exactly when since it was autoupdating and the user was no longer with us.

However, it seems that Vista now wants to connect via Port 445 rather than port 139 (the old SMB port) but it uses the same protocol.

We used the program 'rinetd' to redirect port 445 to 139, and the connection now works (note: the above 'fix' still needed to be in place). This was with the older Samba 2.2.7a. The app (for us) was located in /usr/sbin/ and the config file at /etc/rinetd.conf That file is as simple as the IP and port of the incoming traffic, and the IP and port of the redirect. Our example was this:

Code:
10.10.10.1 445 10.10.10.1 139
And we were up and running again.

I hope this helps someone, or at least me in the future when I go a-lookin'.
 
Old 07-30-2007, 10:49 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
From the Samba 3 Reference Guide:
Quote:
• Samba-3 provides NetBIOS name services (WINS), NetBIOS over TCP/IP
(TCP port 139) session services, SMB over TCP/IP (TCP port 445)
session services, and Microsoft compatible ONC DCE RPC services
(TCP port 135) services.
...
[global]
...
smb ports = 139 445
...
Since the introduction of MS Windows 2000, it is possible to run MS Windows
networking without the use of NetBIOS over TCP/IP. NetBIOS over
TCP/IP uses UDP port 137 for NetBIOS name resolution and uses TCP
port 139 for NetBIOS session services. When NetBIOS over TCP/IP is disabled
on MS Windows 2000 and later clients, then only the TCP port 445
is used, and the UDP port 137 and TCP port 139 are not.
...
 
Old 07-31-2007, 08:29 AM   #3
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Original Poster
Rep: Reputation: 32
Thanks for the quote; ours was a situation with Samba 2.2.7a however, just to point that out to readers.
 
Old 08-04-2007, 05:48 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
If you have Vista hosts, I think you will want to upgrade to a recent samba version.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
10.2 and Vista dual boot issues Firebar Suse/Novell 14 04-30-2007 05:05 PM
rinetd, telnet, and disconnects on FC4 nicentral Linux - Networking 0 01-11-2006 10:14 AM
SMB Share Issues Soulful93 Linux - Networking 7 09-06-2005 06:28 PM
about RINETD jp-lack Linux - General 0 07-10-2005 10:39 AM
SMB printing issues scottpioso Linux - General 1 05-05-2003 10:15 AM


All times are GMT -5. The time now is 12:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration