Samba access works with IP address only
Posted
by Sebastian Rittau
on Server Fault
See other posts from Server Fault
or by Sebastian Rittau
Published on 2009-10-14T13:07:08Z
Indexed on
2010/03/20
0:01 UTC
Read the original article
Hit count: 202
I added a Debian etch host (hostname: webserver, IP address: 192.168.101.2) running Samba to a Windows network with a Windows 2003 PDC (IP address 192.168.101.3). The Samba server exports a public guest share, called "Intranet". The server shows up fine in the network, but trying to click on it produces an error dialog, stating I don't have the necessary permissions. So does entering \webserver manually and using \webserver\internet states that the path does not exist. Interestingly, accessing the share by IP address (\192.168.101.2 or \192.168.101.2\intranet) works fine. DNS is configured correctly, and "smbclient //webserver/intranet" on another Linux client works fine.
One complicating issue is that the webserver is only a VMware virtual machine running on PDC server.
Here is our smb.conf:
[global]
workgroup = Foobar
server string = Webserver
wins support = yes ; commenting out these
wins server = 192.168.101.3 ; two lines has no effect
dns proxy = no
guest account = nobody
[... snipped some unrelated bits, like logging ...]
security = share
[... snipped some password-related things ...]
domain master = no
[intranet]
comment = Intranet
path = /srv/webserver/contents
browseable = yes
guest ok = yes
guest only = yes
read only = yes
create mask = 0775
directory mask = 0775
© Server Fault or respective owner