LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-07-2006, 11:04 AM   #1
cvzyl
Member
 
Registered: Mar 2006
Distribution: openSUSE 10.2
Posts: 47

Rep: Reputation: 15
Samba - cannot see network


I recently swapped from SuSE10.2 to Kubuntu 6.10 and need a bit of help to be able to see the network shares.

My network is set up correctly and I can connect to the internet.
When going to Remote Places>Samba I see two workgroups, Home and Workgroup. The rest of my PC's are all on Home but when I try to browse it I get an error saying "Timeout on server". I can browse the Workgroup but obviously it is only the Kubuntu machine on it.
In System Settings>Sharing I can see that samba is running and that simple sharing is enabled.
When browsing my local network from a Windows machine, I can also see two workgroups, Home and Workgroup. When I try to connect to the Kubuntu machine it asks for a username and password. What should I enter here? I entered my login details for the Kubuntu machine but it is rejected.

My questions:
1. What should I do to get this samba sharing working?
2. How do I change the workgroup on the Kubuntu machine from Workgroup to Home?

Thank you
Cobus van Zyl
 
Old 12-07-2006, 12:56 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
If you want to be able to browse samba (Windows SMB/CIFS) shares, you have to open a broad range of ports - this is why most folks don't permit it. If you want to allow it, you have to open ports 1025-65535, in addition to the usual 137-139 and 445 which are needed to actually use the shares. One way to do this is to limit access to the subnet on your LAN. For example:

Code:
# Samba
-A INPUT -s 123.45.67.0/24 -p tcp -m tcp --dport 137:139  --syn -j ACCEPT
-A INPUT -s 123.45.67.0/24 -p udp -m udp --dport 137:139        -j ACCEPT
-A INPUT -s 123.45.67.0/24 -p tcp -m tcp --dport 445      --syn -j ACCEPT
-A INPUT -s 123.45.67.0/24 -p udp -m udp --dport 445            -j ACCEPT
-A INPUT -s 123.45.67.0/24 -p udp -m udp --dport 1025:65535     -j ACCEPT
As far as the userid and password, that's what you've set with the "smbpasswd" command on the system running Samba. It does not have to be related to a system login at all.
 
Old 12-07-2006, 03:52 PM   #3
cvzyl
Member
 
Registered: Mar 2006
Distribution: openSUSE 10.2
Posts: 47

Original Poster
Rep: Reputation: 15
Hi macemoneta

How do I open these ports? The extract you showed below, is that from a config file?

I also tried changing the samba password with the smbpasswd command. It seemed to succeed but when I try to log in from a Windows machine and type my username and password (new one specified) it just pops up the login box again, asking for a username and password.

My main problem is that I cannot see any other computers on the network. Is that related to the ports? In SuSE I did not have this problem. Although Windows machines could not access my shared drives, at least I could access theirs.

Cobus
 
Old 12-07-2006, 04:07 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Thats a sample configuration for an iptables firewall, common on Linux systems. You will have to adjust it for your configuration and LAN addresses. There's probably a GUI that you have in an administration tool that will let you configure the firewall, but they tend to be somewhat simplistic.

The basic idea is described in the text above the sample. Look at the documentation for the firewall configuration tool you are using, and try to determine how to open the ports.

Keep in mind the statement about not doing this. You are opening not one or two ports, but over 64,000! This has potentially serious security issues. If you are not sure, better to not do it. Just configure an id and password with smbpasswd and specify the specific share you want on the Windows machine. It's much safer.
 
  


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
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
samba..? network..? how..? captain skywave Linux - Networking 5 12-12-2004 02:37 PM
Can't see samba on the network... EnigmaX Linux - Newbie 8 04-26-2004 12:41 PM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM
network cd-r with samba alaios Linux - Networking 6 06-17-2003 01:45 PM

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

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