Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.