Hostname CANNOT equal to NetBIOS name!!!A bit of background...
- our server hostname is server1
- our NetBIOS name is server1 (defined in smb.conf)
- IP-address is 10.0.0.2
From Windows 7 / OSX we can access the samba shares using \\10.0.0.2\share, as well as \\server1.local\share (the .local is a result of running avahi-daemon). We can also ping 10.0.0.2 or server1 or server1.local, but we simply cannot access with \\server1\share
By changing the Hostname in /etc/hosts & /etc/hostname to any name other than "server1", or change the NetBIOS name in smb.conf to any other name, we can now get it work.
This is rather weird for a Windows user like me, where only hostname need to be set and we can access directly from other PC in the network without bothering what is NetBIOS. Linux is indeed too tricky!
Anyway, kind of fun when able to figure out what's wrong. It makes me love and hate Linux at the same moment!
No comments:
Post a Comment