Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 have a different problem now. I have two machines, the linux machine with samba and a windows xp machine as a client.
On my windows machine when I browse Workgroups I can see the linux machine and myself. I can also see all the shared folders in My Network Places.
From the linux machine when I do a findsmb it only lists the linux machine, not the windows machine. But when I do a smbtree it shows all the shared directories from the linux and windows machine.
I don't have a second client computer to test with, but wouldn't the second client not be able to see the windows machine because it's not listed on the server?
For me, findsmb finds the host linux box I run it from plus a networked printer(!). smbtree gives the type of response I'd expect (samba shares plus windows shares). I suspect this is because I have port 445 closed, but that's just a guess.
Ok, but I have the entire interface open, no closed ports and I still get only the samba server showing up for findsmb.
Also after further testing, when I restart the windows machine and execute a smbtree on the linux machine, it lists all the linux and windows shared directories. After a few minutes, it sometimes doesn't see the windows directories anymore.
The samba server times out names after six days so why are the directories sometimes dissapearing after a few minutes.
I have file and folder sharing allowed through windows firewall.
Let me clarify my questions, they may have been confusing.
The windows machine can see and download all the shared folders from the linux machine, and the linux machine can download from the windows machine with smbclient.
However, when I issue "findsmb" the linux machine only reports itself, not the windows machine. The man pages show it printing a list of machines for the entire network. Why is findsmb not listing the windows machine?
Even though file and printer sharing is enabled in windows firewall findsmb still doesn't list the windows machine. I also tried disabling windows firewall, still nothing. I allow all traffic to my linux machine from lan interface (currently).
Secondly, smbtree doesn't always return consistent results. When I restart my windows machine and do a smbtree from the linux machine, all of the shared folders for linux and windows are listed. Then a few minutes later smbtree may only list linux shared folders. It seems inconsistent, is this normal?
smbstatus seems to work. When I'm connected to a linux shared folder smbstatus lists the connection.
I understood what you were saying, but I get a similar response - ie findsmb doesn't see my windows boxes either - it just finds the server and a printer. Probably a Windows setting, but I really don't know. Yes, smbtree shows windows shares. Sounds like an findsmb issue to me rather than your system.
Someone on IRC said "that depends if the windows server is advertising on netbios, and what the permissions are on the share". Well the permissions on the windows share allow it to be downloaded, I have "share this folder on the network" checked.
I also have file and printer sharing allowed through the firewall. Still not sure why it isn't showing up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.