Bug 1151350

Summary: Cannot browse smb shares in Files/nautilus or dolphin file manager unless name resolve order = bcast host is used
Product: [Fedora] Fedora Reporter: Asif Ali Rizvan <fast.rizwaan>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 21CC: abokovoy, asn, gdeschner, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-11 22:30:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
working smb.conf with wins server=yes and name resolve order = wins bcast host none

Description Asif Ali Rizvan 2014-10-10 08:35:04 UTC
Created attachment 945508 [details]
working smb.conf with wins server=yes and name resolve order = wins bcast host

Description of problem: 
Fedora 21 Workstation needs to be easy to share directory across windows and linux p2p network, but even after setting the samba shares, Nautitlus or Dolphin file managers can't access Samba shares from Browse network, but can access it from smb://ip address/


Version-Release number of selected component (if applicable):
samba 4.1

How reproducible:
always

Steps to Reproduce:
1. create a share, like:

---past at the end smb.conf ---
[save]
	comment = my save folder
	path = /run/media/save
	public = yes
	guest only = yes
---

2. enable/restart smb.service and nmb.service, disable firewall, run " setsebool -P samba_export_all_ro on" for selinux and smbpasswd -a $user;
3. smbclient -L //localhost <- shows the list

Actual results:
smbclient will list the shares, can be mounted with commandline as well as teh shares are accessible/visible by smb://IP Address/; but in Nautilus and Dolphin file managers, Localhost (samba server) is unaccessible.

unless we use

 	name resolve order = wins bcast host
below workgroup = mygroup...


Expected results:
; name resolve order = 
should also be given in smb.conf example file so that users in Home environment and peer-to-peer network can easily view the network shares. using the smb://ipaddress is very un workstation like and too geeky.

Additional info:

I'd request to have the "name resolve order = wins bcast host" be included in sample smb.conf file so that users could easily enable it for ease of sharing.

Thanks.

Comment 1 Asif Ali Rizvan 2014-10-11 22:30:45 UTC
ok, nautilus is find the share but ONLY AFTER REBOOTING Fedora 21, even when I restarted smb.service and nmb.service. Perhaps samba is creating the LMHOSTS file in /etc/samba on system reboot.

Anyways, closing this bug, as REBOOT fixes the listing of samba shares.

Thanks.