Wednesday, May 14, 2008

Windows Networking Broken

Today on \\godzilla the windows shares on other machines had disappeared. We had installed GSAMBAD which is a GUI tool to manage samba, the windows networking. We had done these tasks before by editing /etc/samba/smb.conf using the PICO text editor.

When we went to the gsambad control panel and deactivated samba and then activated it in returned an error message that 'wininbdd was not found'. This is a linux version of winbind. The master browser on the network is \\rodan, an old windows 2000 server that used to run the printers and still runs the big HP ScanJet 3c.

So we install winbindd, deactivate and active samba. We now note that it lists nmdb as being inactive. That program is a server that responds to netbios name service requests from other machines. This is probably why \\godzilla does not display as a share on the other machines. There were security issues with nmdb which may explain why it is not listed in the package manager. We had problems with gsambad on the dell laptop and fixed it by removing the package and deleting the smb.conf file it created and restoring the old file.

The gsambad security log notes it denied connections from 192.168.1.117 which is the dell laptop and 107 and 106 and every machine on the network. It is most likely possible to get this to work but doesn't seem worth the trouble so let's remove it and restore the old configuration. We need samba to work - else we can't get to the file server.

-rw-r--r-- 1 root dhcp 0 2008-04-16 20:16 dhcp.conf
-rw-r--r-- 1 root root 8 2007-10-04 02:39 gdbcommands
-rw-r--r-- 1 root root 3412 2008-05-14 21:06 smb.conf
-rw-r--r-- 1 root root 10911 2008-04-29 20:25 smb.conf.gsambad.old
-rw------- 1 root root 314 2008-05-14 20:46 smbpasswd
-rw-r--r-- 1 root root 91 2008-05-14 20:46 smbusers
gnickers@godzilla:/etc/samba$ sudo rm smb.conf

Next i decided to stop samba - this takes me back to old red hat:

gnickers@godzilla:/etc/samba$ sudo /etc/init.d/samba stop

I tried rename the file to smb.conf but got error message about bareword 'not allowed while strict subs in use at line 1'.

We could grab a smb.conf file from one of the other machines and edit it but it may be simplier to uninstall and re-install samba. That worked for the dell laptop. So we mark the packages for removal and then re-install. We shut down samba make changes to the configuration file and start it up again

gnickers@godzilla:/etc/samba$ sudo pico smb.conf
gnickers@godzilla:/etc/samba$ sudo /etc/init.d/samba start

No windows shares are displayed. The link to \\mothra and \\gamera are broken. Doing a reboot was the only thing that solved the problem. The windows machines are now displayed along with the shares on the server.

No comments: