View difference between Paste ID: jxnC1XpT and tJgxXEBJ
SHOW: | | - or go back to the newest paste.
1
Overview
2
I can connect to my samba share from Windows 10 and Linux Mint 18 fine if I use the IP, but not by using the netbios name.
3
4
I have nmbd, smbd, winbind, and samba services running, standard logging without errors.
5
6
See below for the smbtree output, but you can see it attempts resolve_hosts method of resolving the IP for the host. However, you can also see below nmblookup  
7
8
-------------------------------------------
9
10
uname
11
xbmc@couchly ~ $ uname -a
12
Linux couchly 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
13
14
-------------------------------------------
15
16
lsb_release
17
xbmc@couchly ~ $ lsb_release -a
18
No LSB modules are available.
19
Distributor ID:	LinuxMint
20
Description:	Linux Mint 17.3 Rosa
21
Release:	17.3
22
Codename:	rosa
23
24
Version
25
xbmc@couchly ~ $ samba --version
26
Version 4.3.11-Ubuntu
27
28
-------------------------------------------
29
30
testparm -s
31
xbmc@couchly ~ $ testparm -s 
32
Load smb config files from /etc/samba/smb.conf
33
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
34
WARNING: The "syslog" option is deprecated
35
Processing section "[!INCOMING]"
36
Processing section "[Video]"
37
Processing section "[Music]"
38
Processing section "[Mame Roms]"
39
Loaded services file OK.
40
Server role: ROLE_STANDALONE
41
42
# Global parameters
43
[global]
44
	server string = %h server (Samba, Linux Mint)
45
	server role = standalone server
46
	map to guest = Bad User
47
	obey pam restrictions = Yes
48
	pam password change = Yes
49
	passwd program = /usr/bin/passwd %u
50
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
51
	username map = /etc/samba/smbusers
52
	unix password sync = Yes
53
	syslog = 0
54
	log file = /var/log/samba/log.%m
55
	max log size = 1000
56
	name resolve order = bcast lmhosts wins host
57
	dns proxy = No
58
	usershare allow guests = Yes
59
	usershare owner only = No
60
	panic action = /usr/share/samba/panic-action %d
61
	idmap config * : backend = tdb
62
63
64
[!INCOMING]
65
	comment = New files to share
66
	path = /mnt/storage_2/!INCOMING
67
	read only = No
68
	guest ok = Yes
69
70
[Video]
71
	path = /mnt/storage_1/Video
72
	valid users = xbmc
73
	read only = No
74
75
[Music]
76
	comment = Sweet Choons
77
	path = /mnt/storage_1/Music
78
	guest ok = Yes
79
80
[Mame Roms]
81
	path = /mnt/storage_2/Mame Roms
82
	guest ok = Yes
83
84
-------------------------------------------
85
86
/etc/samba/smb.conf
87
xbmc@couchly ~ $ cat /etc/samba/smb.conf 
88
89
[global]
90
	workgroup = WORKGROUP
91
	netbios name = couchly
92
	name resolve order = bcast lmhosts wins host 
93
	server string = %h server (Samba, Linux Mint)
94
	dns proxy = no
95
	log file = /var/log/samba/log.%m
96
	max log size = 1000
97
	syslog = 0
98
	panic action = /usr/share/samba/panic-action %d
99
	server role = standalone server
100
	obey pam restrictions = yes
101
	unix password sync = yes
102
	passwd program = /usr/bin/passwd %u
103
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
104
	pam password change = yes
105
	map to guest = bad user
106
	usershare allow guests = yes
107
	usershare owner only = false
108
	username map = /etc/samba/smbusers
109
110
[!INCOMING]
111
	path = /mnt/storage_2/!INCOMING
112
	writeable = yes
113
	guest ok = yes
114
	comment = New files to share
115
116
[Video]
117
	path = /mnt/storage_1/Video
118
	writeable = yes
119
	valid users = xbmc
120
121
[Music]
122
	path = /mnt/storage_1/Music
123
	guest ok = yes
124
	comment = Sweet Choons
125
126
[Mame Roms]
127
	path = /mnt/storage_2/Mame Roms
128
	guest ok = yes
129
130
-------------------------------------------
131
132
nmblookup
133
xbmc@couchly ~ $ nmblookup couchly
134
192.168.0.50 couchly<00>
135
136
smbtree -d3
137
xbmc@couchly ~ $ smbtree -d3
138
lp_load_ex: refreshing parameters
139
Initialising global parameters
140
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
141
Processing section "[global]"
142
WARNING: The "syslog" option is deprecated
143
added interface docker0 ip=172.17.0.1 bcast=172.17.255.255 netmask=255.255.0.0
144
added interface wlan0 ip=192.168.0.60 bcast=192.168.0.255 netmask=255.255.255.0
145
Enter dnb's password: 
146
tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied
147
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
148
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
149
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d>
150
Got a positive name query response from 192.168.0.60 ( 192.168.0.60 )
151
Connecting to 192.168.0.60 at port 445
152
Doing spnego session setup (blob length=74)
153
got OID=1.3.6.1.4.1.311.2.2.10
154
got principal=not_defined_in_RFC4178@please_ignore
155
GENSEC backend 'gssapi_spnego' registered
156
GENSEC backend 'gssapi_krb5' registered
157
GENSEC backend 'gssapi_krb5_sasl' registered
158
GENSEC backend 'spnego' registered
159
GENSEC backend 'schannel' registered
160
GENSEC backend 'naclrpc_as_system' registered
161
GENSEC backend 'sasl-EXTERNAL' registered
162
GENSEC backend 'ntlmssp' registered
163
GENSEC backend 'ntlmssp_resume_ccache' registered
164
GENSEC backend 'http_basic' registered
165
GENSEC backend 'http_ntlm' registered
166
GENSEC backend 'krb5' registered
167
GENSEC backend 'fake_gssapi_krb5' registered
168
Got challenge flags:
169
Got NTLMSSP neg_flags=0x628a8215
170
NTLMSSP: Set final flags:
171
Got NTLMSSP neg_flags=0x62088215
172
NTLMSSP Sign/Seal - Initialising with flags:
173
Got NTLMSSP neg_flags=0x62088215
174
WORKGROUP
175
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
176
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
177
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d>
178
Got a positive name query response from 192.168.0.60 ( 192.168.0.60 )
179
Connecting to 192.168.0.60 at port 445
180
Doing spnego session setup (blob length=74)
181
got OID=1.3.6.1.4.1.311.2.2.10
182
got principal=not_defined_in_RFC4178@please_ignore
183
Got challenge flags:
184
Got NTLMSSP neg_flags=0x628a8215
185
NTLMSSP: Set final flags:
186
Got NTLMSSP neg_flags=0x62088215
187
NTLMSSP Sign/Seal - Initialising with flags:
188
Got NTLMSSP neg_flags=0x62088215
189
	\\DNB        		dnb server (Samba, Linux Mint)
190
resolve_lmhosts: Attempting lmhosts lookup for name DNB<0x20>
191
resolve_lmhosts: Attempting lmhosts lookup for name DNB<0x20>
192
resolve_wins: WINS server resolution selected and no WINS servers listed.
193
resolve_hosts: Attempting host lookup for name DNB<0x20>
194
Connecting to 127.0.1.1 at port 445
195
Doing spnego session setup (blob length=74)
196
got OID=1.3.6.1.4.1.311.2.2.10
197
got principal=not_defined_in_RFC4178@please_ignore
198
Got challenge flags:
199
Got NTLMSSP neg_flags=0x628a8215
200
NTLMSSP: Set final flags:
201
Got NTLMSSP neg_flags=0x62088215
202
NTLMSSP Sign/Seal - Initialising with flags:
203
Got NTLMSSP neg_flags=0x62088215
204
		\\DNB\Downloads      	
205
		\\DNB\IPC$           	IPC Service (dnb server (Samba, Linux Mint))
206
		\\DNB\print$         	Printer Drivers
207
	\\COUCHLY        		couchly server (Samba, Linux Mint)
208
resolve_lmhosts: Attempting lmhosts lookup for name COUCHLY<0x20>
209
resolve_lmhosts: Attempting lmhosts lookup for name COUCHLY<0x20>
210
resolve_wins: WINS server resolution selected and no WINS servers listed.
211
resolve_hosts: Attempting host lookup for name COUCHLY<0x20>
212
Connecting to 198.105.254.228 at port 445
213
Connecting to 198.105.254.228 at port 139
214
Connecting to 198.105.244.228 at port 445
215
Connecting to 198.105.244.228 at port 139