Post by Marco MoockPost by Marco MoockI used the same smb.conf for 15.0 as I did for 14.2 I cannot connect to
the computer using (old) android devices: I get a message the android
device needs smb2.0. How can I set back the computer to allow
connection from my android device?
Please post your config file.
https://www.cyberciti.biz/faq/how-to-configure-samba-to-use-smbv2-and-
disable-smbv1-on-linux-or-unix/
As all parameters not mentioned in the smb.conf get a default value it
echo | testparm -v 2> /dev/null | grep protoco
client ipc max protocol = default
client ipc min protocol = default
client max protocol = default
client min protocol = SMB2_02
server max protocol = SMB3
server min protocol = SMB2
Thanks Henrik and Marco for responding. The original smb.conf
was:
[global]
guest account = smbguest
netbios name = aa
security = user
null passwords = yes
map to guest = Bad Password
guest account = smbguest
# socket options = TCP_NODELAY IPTOS_LOWDELAY
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65535 SO_SNDBUF=65535 SO_KEEPALIVE
workgroup = WORKGROUP
domain master = yes
[public]
guest ok = yes
guest only = yes
path = /samba.ok/
browseable = yes
read only = no
Following Marco's reference I changed this to:
[global]
guest account = smbguest
netbios name = aa
security = user
passdb backend = tbdsam
min protocol = SMB2
[public]
guest ok = yes
guest only = yes
path = /samba.ok/
browseable = yes
read only = no
Prior to any of this, I created a user smbguest with this
entry in /etc/passwd:
smbguest:x:1000:100::/home/smbguest:/bin/bash
The :x: means, to me, that I did enter a password
when I created the user. That password was guest.
In my android device I had been using ES File explorer.
It is that file manager which issued the smb2.0 refusal.
Subsequently I loaded the X-Plore file manager from the
Play Store. X-Plore allows SMB2 connection.
ES file explorer had a point where I could click anonymous
but X-Plore does not have that choice. X-Plore says to
leave the username blank for anonymous access, which I do.
X-Plore fails to connect regardless of whether I supply
the smbguest password.
Every time I make a change to smb.conf I restart /etc/rc.d/rc.samba
Currently X-Plore gives me this message:
java.netConnectExceptio failed to connect to/
10.0.0.1 (port 445) from 10.0.0.229 port 4032
Connection Refused
I set the permissions on the access /samba.ok as
chmod 7777 /samba.ok and everything within that
directory.
It has been so long since I set up 14.2 I am guessing
I missed some step in setting up samba, or I have
set something incorrectly.
Thanks for your help.