Mail up and running, now I want my local network to work well. I’d like to be able to share volumes from the linux system (BANANA) with windows clients, and I’d like to be able to do the reverse without too much agony.
First, let’s figure out how to access windows file shares on other systems. I’d like to have /smb/turnip/TEMP be a way to access transparently the \\TURNIP\TEMP share.
I know how to do this. First install winbind and edit /etc/nsswitch.conf to append wins to the hosts search list. Then install autofs, and edit /etc/auto.master to uncomment the “smb auto.smb” line.
After restarting the autofs daemon, here’s what I get:
phil@banana:~$ ls /smb/turnip/temp APPIQ DVD ITUNES phil-Desktop print RADIO4-MP3 temp DATA DVDISO ITUNES-XML PHOTO RADIO4 SharedDocs
That’s not quite right – it’s listing all the services but not the content of the share. Here’s what /var/log/messages says:
Jul 5 16:40:09 banana automount[10285]: >> mount: wrong fs type, bad option, bad superblock on //turnip/temp, Jul 5 16:40:09 banana automount[10285]: >> missing codepage or other error Jul 5 16:40:09 banana automount[10285]: >> In some cases useful info is found in syslog - try Jul 5 16:40:09 banana automount[10285]: >> dmesg | tail or so Jul 5 16:40:09 banana automount[10285]: mount(generic): failed to mount //turnip/temp (type smbfs) on /smb/turnip/temp
It turns out this is Debian’s helpful way of telling you you don’t have the smbfs package installed. Soon fixed.
phil@banana:~$ ls /smb/turnip/temp 1300.ram 2549.mp3 772.mp3 FOR ENGLAND TRIP ns.tiff rtsp.pl~ 2005-10-01-004.JPG 2550.mp3 941.mp3 idris 4th birthday share nthapi_3-RC.dll s_dougherty_ref1.doc