Hi All: My machine: jserinki7 jserink # uname -a Linux jserinki7 4.8.10-gentoo #64 SMP PREEMPT Sun Dec 4 02:01:32 SGT 2016 x86_64 Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux jserinki7 jserink # equery list samba * Searching for samba ... [IP-] [ ] net-fs/samba-4.2.11:0 I run samba as an internal server to my machine to share my ext4 file system to my windows7 guest I use in QEMU. Everything was working fine. I had not used windows for about two weeks and fired up my VM to see that windows could not connect to the samaba drives though samba was running. jserinki7 jserink # /etc/init.d/samba status * status: started I then tried from a bash prompt and get his: jserinki7 jserink # smbclient -L 192.168.100.1 -U jserink -m SMB2 Enter jserink's password: protocol negotiation failed: NT_STATUS_IO_TIMEOUT Googling suggesting putting the Netbios name in the /etc/hosts file, which I did, no change. Here is my /etc/hosts file: jserinki7 jserink # cat /etc/hosts # /etc/hosts: Local Host Database # # This file describes a number of aliases-to-address mappings for the for # local hosts that share this file. # # The format of lines in this file is: # # IP_ADDRESS canonical_hostname [aliases...] # #The fields can be separated by any number of spaces or tabs. # # In the presence of the domain name service or NIS, this file may not be # consulted at all; see /etc/host.conf for the resolution order. # # IPv4 and IPv6 localhost aliases 127.0.0.1 localhost ::1 localhost 192.168.100.1 MILK and my smb.conf file: jserinki7 jserink # cat /etc/samba/smb.conf [global] #netbios name = MILK workgroup = TNS wins support = yes hosts allow = 192.168.100. 127.0.0. socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384 IPTOS_LOWDELAY use sendfile = yes log level = 0 passdb:0 auth:0 client signing = auto # need to add user with smbpasswd -a jserink passdb backend = smbpasswd #interfaces = tap0 interfaces = 192.168.100.1/24 127.0.0.1/24 security = user max protocol = smb2 #client use spnego = No server string = Samba Server %v bind interfaces only = yes #map to guest = Bad Password [WINDOWSD] path = /home/jserink/folders/InfraStructure/ valid users = jserink read only = no write list = jserink jserinkwin7 fstype = ext4 browsable = yes [XEROX] path = /home/jserink/xerox/ comment = directory for scans valid users = xerox write list = xerox case sensitive = no strict locking = no guest ok = yes read only = no fstype = ext4 [WINDOWSF] path = /home/jserink/folders/ valid users = jserink read only = no write list = jserink jserinkwin7 fstype = ext4 [WINDOWSG] path = /home/jserink/folders/manual/ valid users = jserink read only = no write list = jserink fstype = ext4 [HOME] path = /home/jserink/ valid users = jserink read only = no write list = jserink browsable = no [WINDOWSE] path = /home/jserink/shr/ valid users = jserink read only = no write list = jserink fstype = ext4 #[IMBS] #path = /mnt/IMBS2014 #valid users = jserink #read only = yes Looking for some trouble shooting tips here. Cheers, john -- John Edward Serink Product Applications Engineer, Advanced Positioning Trimble Navigation Singapore PTE Ltd. 80 Marine Parade Road, Co. Reg. No. 199204958W #22-06 Parkway Parade Singapore 449269 Tel 65-6348-2212 Fax 65-6348-2232 DID 65-6348-2178 HP 65-9129-4250 Skype: johnserink
Am 23.12.2016 um 05:29 schrieb John Serink via samba:> I then tried from a bash prompt and get his: > jserinki7 jserink # smbclient -L 192.168.100.1 -U jserink -m SMB2 > Enter jserink's password: > protocol negotiation failed: NT_STATUS_IO_TIMEOUT > hosts allow = 192.168.100. 127.0.0. > interfaces = 192.168.100.1/24 127.0.0.1/24 > bind interfaces only = yeswhy in teh world are you *starting* with such nonsense configurations you obviosuly don't understand (otherwise you won't list CIDR masks in interface settings)? * first you srtart with looking if the service is listening correctly * second you try to connect with "telnet host port" * and AFTER thatis successful you have a point to touch a native client so what says "netstat --numeric-hosts --numeric-ports --programs -u -t -l" on the server?
jserinki7 jserink # netstat -lnptu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
3711/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
2849/cupsd
tcp 0 0 192.168.100.1:445 0.0.0.0:* LISTEN
27998/smbd
tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN
27998/smbd
tcp 0 0 192.168.100.1:139 0.0.0.0:* LISTEN
27998/smbd
tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN
27998/smbd
tcp 0 0 0.0.0.0:22222 0.0.0.0:* LISTEN
2992/sshd
tcp 0 0 127.0.0.1:7634 0.0.0.0:* LISTEN
2906/hddtemp
tcp6 0 0 :::53 :::* LISTEN
3711/dnsmasq
tcp6 0 0 ::1:631 :::* LISTEN
2849/cupsd
tcp6 0 0 :::22222 :::* LISTEN
2992/sshd
udp 0 0 0.0.0.0:5353 0.0.0.0:*
6048/libpepflashpla
udp 0 0 0.0.0.0:53 0.0.0.0:*
3711/dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:*
4102/dhcpcd
udp 0 0 192.168.100.255:137 0.0.0.0:*
28004/nmbd
udp 0 0 192.168.100.1:137 0.0.0.0:*
28004/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:*
28004/nmbd
udp 0 0 192.168.100.255:138 0.0.0.0:*
28004/nmbd
udp 0 0 192.168.100.1:138 0.0.0.0:*
28004/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:*
28004/nmbd
udp6 0 0 :::53 :::*
3711/dnsmasq
On Fri, Dec 23, 2016 at 6:57 PM, Reindl Harald via samba <
samba at lists.samba.org> wrote:
>
>
> Am 23.12.2016 um 05:29 schrieb John Serink via samba:
>
>> I then tried from a bash prompt and get his:
>> jserinki7 jserink # smbclient -L 192.168.100.1 -U jserink -m SMB2
>> Enter jserink's password:
>> protocol negotiation failed: NT_STATUS_IO_TIMEOUT
>> hosts allow = 192.168.100. 127.0.0.
>> interfaces = 192.168.100.1/24 127.0.0.1/24
>> bind interfaces only = yes
>>
>
> why in teh world are you *starting* with such nonsense configurations you
> obviosuly don't understand (otherwise you won't list CIDR masks in
> interface settings)?
>
> * first you srtart with looking if the service is listening correctly
> * second you try to connect with "telnet host port"
> * and AFTER thatis successful you have a point to touch a native client
>
> so what says "netstat --numeric-hosts --numeric-ports --programs -u -t
-l"
> on the server?
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
--
John Edward Serink
Product Applications Engineer,
Advanced Positioning
Trimble Navigation Singapore PTE Ltd.
80 Marine Parade Road,
Co. Reg. No. 199204958W
#22-06 Parkway Parade
Singapore 449269
Tel 65-6348-2212
Fax 65-6348-2232
DID 65-6348-2178
HP 65-9129-4250
Skype: johnserink