Carlos R. Pena wrote on Sat 04 Aug at 16:28 UK time> > Hello everybody, > > I am using Ubuntu 12.04LTS server running samba server on it. I have > problem accessing the shares from Windows XP with \\servername\share, > but no problem accessing \\ip\share. How can i correct this problem?. I > have tried every single example found on google with no good results. > > Any help will be appreciated. >Is nmbd running? Problems like this are normally to do with the Windows NetBIOS name resolution. If the Ubuntu server is not running nmbd, it will not join the correct workgroup so will not be seen by the master browser for the network. Also worth checking that you have your net masks set correctly (a machine will only join a workgroup if the net mask is correct as Windows uses the netmask to determine the broadcast address for NetBIOS commands).
Hello everybody, I am using Ubuntu 12.04LTS server running samba server on it. I have problem accessing the shares from Windows XP with \\servername\share, but no problem accessing \\ip\share. How can i correct this problem?. I have tried every single example found on google with no good results. Any help will be appreciated. Sincerely, Carlos R. Pena My smb.conf [global] workgroup = WORKGROUP netbios aliases = editora servidor editdom server string = %h (Ubuntu 12.04 LTS) wins support = yes dns proxy = no name resolve order = wins lmhosts hosts bcast log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user load printers = yes printing = cups printcap name = cups usershare allow guests = yes #======================= Share Definitions ====================== [MyShare] browseable = yes comment = MyShare on Ubuntu Server read only = no create mask = 0777 directory mask = 0777 public = yes path = /MyShare ************************* end of smb.conf file ***************** My server /etc/hosts file 127.0.0.1 localhost 1.1.1.1 EditDom-Server.editdom.local EditDom-Server # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ********************** end of hosts file My server /etc/nsswitch.conf # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service Switch"' for information about this file. passwd: compat group: compat shadow: compat hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4 networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis ******************* end of nsswitch.conf file
andrewm at aimsystems.ca
2012-Aug-04 22:28 UTC
[Samba] Problem accessing Samba Share from Windows
I had this issue before and solved it by adding my subnet to the list of hosts allowed to access samba. i.e. hosts allow = 127. 192.168.0. (your.subnet.here.) I had this issue when trying to access samba from a machine connected via our corporate VPN and needed to add the subnet into the list. Crucial if you need to NAT and masq your IPs. Sent from my BlackBerry device on the Rogers Wireless Network -----Original Message----- From: Andy Sheen <sheen.andy at googlemail.com> Sender: samba-bounces at lists.samba.org Date: Sat, 04 Aug 2012 16:08:27 To: <samba at lists.samba.org> Subject: Re: [Samba] Problem accessing Samba Share from Windows Carlos R. Pena wrote on Sat 04 Aug at 16:28 UK time> > Hello everybody, > > I am using Ubuntu 12.04LTS server running samba server on it. I have > problem accessing the shares from Windows XP with \\servername\share, > but no problem accessing \\ip\share. How can i correct this problem?. I > have tried every single example found on google with no good results. > > Any help will be appreciated. >Is nmbd running? Problems like this are normally to do with the Windows NetBIOS name resolution. If the Ubuntu server is not running nmbd, it will not join the correct workgroup so will not be seen by the master browser for the network. Also worth checking that you have your net masks set correctly (a machine will only join a workgroup if the net mask is correct as Windows uses the netmask to determine the broadcast address for NetBIOS commands). -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Thank you Andrew, Your suggestion works very well. I used this syntax in the smb.conf file: hosts allow = xxx.xxx.xxx.xxx/mmm.mmm.mmm.mmm where xxx.xxx.xxx.xxx is the server ip and mmm.mmm.mmm.mmm the subnet mask. I veryfied all the ips and subnets in the /etc/network/interfaces file and workstations as well. Now the workstations see the server by its server name and/or aliases names. Carlos Pena E. Santo Domingo, Dominican Republic On 8/4/2012 5:28 PM, andrewm at aimsystems.ca wrote: > I had this issue before and solved it by adding my subnet to the list of hosts allowed to access samba. > i.e. > hosts allow = 127. 192.168.0. (your.subnet.here.) > I had this issue when trying to access samba from a machine connected via our corporate VPN and needed to add the subnet into the list. Crucial if you need to NAT and masq your IPs. > Sent from my BlackBerry device on the Rogers Wireless Network > > -----Original Message----- > From: Andy Sheen <sheen.andy at googlemail.com> > Sender: samba-bounces at lists.samba.org > Date: Sat, 04 Aug 2012 16:08:27 > To: <samba at lists.samba.org> > Subject: Re: [Samba] Problem accessing Samba Share from Windows > > > > Carlos R. Pena wrote on Sat 04 Aug at 16:28 UK time >> Hello everybody, >> >> I am using Ubuntu 12.04LTS server running samba server on it. I have >> problem accessing the shares from Windows XP with \\servername\share, >> but no problem accessing \\ip\share. How can i correct this problem?. I >> have tried every single example found on google with no good results. >> >> Any help will be appreciated. >> > Is nmbd running? Problems like this are normally to do with the Windows > NetBIOS name resolution. If the Ubuntu server is not running nmbd, it > will not join the correct workgroup so will not be seen by the master > browser for the network. > > Also worth checking that you have your net masks set correctly (a > machine will only join a workgroup if the net mask is correct as Windows > uses the netmask to determine the broadcast address for NetBIOS commands).