LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Samba glitch (https://www.linuxquestions.org/questions/slackware-14/samba-glitch-553994/)

pappy_mcfae 05-15-2007 04:07 AM

Samba glitch
 
I recently re-arranged my networking setup. I installed a wireless router for my laptop. In order for the laptop to receive information from my LAN under Windoze, I had to basically install the wireless router as a firewall between the DSL modem, and the rest of the LAN. The DSL feeds the "untrusted" port on the router, and the rest of the LAN is attached through one of the "trusted" ports. Effectively, it changed my IP addresses on all the machines on my LAN. Instead of being in the neighborhood of 172.10.xxx.xxx, they are now in the range of 198.162.xxx.xxx.

What this has effectively done is rendered Samba completely blind. While Samba still sees the name of my work group, it cannot see one single computer when I am going through Konqueror. If I use Xfsamba, it still shows the old IP addresses (in the 172.10.xxx.xxx range). It does not show the new IP addresses, nor does it connect to the computers on my LAN. If I use Konqueror, and I type in my Samba addresses in the form, smb://198.162.xxx.xxx, I can actually connect to the computer in question. This tells me that there is a file that has the old IP addresses locked in it, and for some reason, it won't release those IP addresses and use the new addresses. This is happening on all the Slackware machines on the LAN.

What I need to know is the specific file(s) that contain these old IP addresses. The Samba documentation is less than forthcoming on this issue. According to that documentation, this file is called "lmhosts" and is supposed to be stored in the /etc/samba directory. However, this is not how things are done in Slackware. Obviously, there is a file somewhere that contains this information, and I need to change it so I can work with Samba again. Returning the wireless router and the LAN back to the way it was is right out. While Samba won't operate properly, under Windoze, I can share files and printers by way of the wireless router. Since I do a lot of file (and printer) sharing, it's a must that the wireless setup can do this.

While all my machines that run Slackware are also dual boot, and therefore can connect to one another through Windoze and NetBEUI, I want my Samba back. There's something infinitely cool about file sharing between Windoze and Slackware.

I am asking only those who have experienced this problem to reply. I know there is much that is theoretical when it comes to problem solving with Linux. I am not interested in theory. I am interested in getting my Samba back. Please, if you know the file that is causing my misery, please let me know. I don't care what it takes to get things back in operation. I want my Samba back!

Blessed be!
Pappy

Alien_Hominid 05-15-2007 04:59 AM

According to this: http://www.eskimo.com/~meik/linux/co...are.html#samba edit your /etc/hosts and symlink to /etc/samba/lmhosts

pappy_mcfae 05-16-2007 02:37 AM

Getting the situation handled.
 
I checked out the link that you listed. It was helpful to a great degree. However, there was an inconsistency (lmhosts is unnecessary), so I am going to post how I actually got things back into working order.

1) I got the IP addresses for all the machines on the LAN and created a text file with those addresses and the associated machine names.
2) I added those IP addresses and computer names to the /etc/hosts file on all the Slackware machines.
3) I made absolutely sure that the workgroup name was placed into the /etc/samba/smb.conf file.
4) I opened the /var/cache/samba/browse.dat file and deleted all entries leaving a blank file
5) I rebooted the system.
6) At that point, I could get to the systems by entering the IP address in konqueror in the form smb://192.168.xxx.xxx. This step repopulated the /var/cache/samba/browse.dat file.
7) I made sure that all the entries in the /etc/samba/smb.conf were the same on all the Slackware machines. The only difference was the use of the line interfaces = wlan0 to be absolutely sure the laptop used the wireless adapter.
8) I rebooted all the Slackware machines.

At that point, things started to work properly. I can't tell you how happy I am that at last, I have samba working properly through the wireless adapter. That was one of my goals when I first started setting up the wireless adapter to work under Linux. Now I am going to go to the "coolest thing you have done with Linux" and post this.

Thanks for the link and the information.

Blessed be!
Pappy


All times are GMT -5. The time now is 10:24 PM.