What's new

SMB2

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Yes between guest account permissions, different behaviour between windows 8.1 / 10 was a nightmare to get to the bottom!! thanks for your help
 
Asus RT-AC88U with SMB2.0 enable + client Windows 10 Pro with SMB 1.0 disabled (for security), samba share of router is accesibe only over IP.
When copying a files speed is often very low, when start copying it's first seconds over 20 MB/s then freezes for 5-10 seconds and than drop <1 MB/s.
Sometimes in logs:

Aug 26 18:31:19 smbd[11418]: [2017/08/26 18:31:18.991236, 0] smbd/smb2_read.c:219(smb2_sendfile_send_data)
Aug 26 18:31:19 smbd[11418]: smb2_sendfile_send_data: sendfile failed for file VIDEO/BDMV/STREAM/1.m2ts (Connection timed out). Terminating


On FTP speed is about 36 MB/s without any issues.
I think SMB 2.0 protocol on Asus RT-AC88U is broken.

P.S.
It's on latest merlin 380.68.
 
Hi ,
Having problems with cifs mount.
Asus RT-AC66U SMB2 enable.
Using a usb harddrive to record tv from tvheadend (libreelec)
If I enable guest account I can ifs mount and record.
But turning off guest no luck. It will not mount.
Getting this log
"Bad SMB2 signature for message
Sep 11 23:37:01 smbd[2292]: [2017/09/11 23:37:01.237999, 0] ../lib/util/util.c:415(dump_data)"
Attached a screenshot configuration
 

Attachments

  • AsusRT-AC66U.png
    AsusRT-AC66U.png
    305.5 KB · Views: 1,082
What firmware version? There are SMB2 fixes in 380.68.

Please post the contents of /etc/smb.conf
 
Last edited:
Hi Colin,
I m running 380.68
Here is the smb.conf
[global]

workgroup = WORKGROUP

netbios name = RT-AC66U-8898

server string = RT-AC66U-8898

unix charset = UTF8

display charset = UTF8

log file = /var/log.samba

log level = 0

max log size = 5

auth methods = guest

guest account = admin

map to guest = Bad Password

guest ok = yes

encrypt passwords = yes

pam password change = no

null passwords = yes

force directory mode = 0777

force create mode = 0777

max connections = 5

socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=65536 SO_SNDB

obey pam restrictions = no

disable spoolss = yes

host msdfs = no
 
Please post the config that doesn't work, the one with guest access turned off and SMB2 turned on.
 
Please post the config that doesn't work, the one with guest access turned off and SMB2 turned on.
Here it is:
[global]
workgroup = WORKGROUP
netbios name = RT-AC66U-8898
server string = RT-AC66U-8898
unix charset = UTF8
display charset = UTF8
log file = /var/log.samba
log level = 0
max log size = 5
security = USER
guest ok = no
map to guest = Bad User
encrypt passwords = yes
pam password change = no
null passwords = yes
force directory mode = 0777
force create mode = 0777
max connections = 5
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=65536 SO_SND $
obey pam restrictions = no
disable spoolss = yes
host msdfs = no
strict allocate = No
wide links = no
bind interfaces only = yes
interfaces = lo br0 192.168.0.2/255.255.255.0
use sendfile = no
map archive = no
map hidden = no
map read only = no
map system = no
store dos attributes = yes
dos filemode = yes
oplocks = yes
level2 oplocks = yes
kernel oplocks = no
enable core files = no
deadtime = 30
load printers = no
printable = no
max protocol = SMB2
smb encrypt = disabled
min receivefile size = 16384
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
[BACKUP (at MyPassport)]
comment = MyPassport's BACKUP in WD My Passport 0740
path = /tmp/mnt/MyPassport/BACKUP
dos filetimes = yes
fake directory create times = yes
valid users = admin, test
invalid users =
read list = admin, test
write list = admin, test
[Inspeladtv (at MyPassport)]
comment = MyPassport's Inspeladtv in WD My Passport 0740
path = /tmp/mnt/MyPassport/Inspeladtv
dos filetimes = yes
fake directory create times = yes
valid users = admin, test
invalid users =
read list = admin, test
write list = admin, test
[Music (at MyPassport)]
comment = MyPassport's Music in WD My Passport 0740
path = /tmp/mnt/MyPassport/Music
dos filetimes = yes
fake directory create times = yes
valid users = admin, test
invalid users =
read list = admin, test
write list = admin, test
[NyaFilmer (at MyPassport)]
comment = MyPassport's NyaFilmer in WD My Passport 0740
path = /tmp/mnt/MyPassport/NyaFilmer
dos filetimes = yes
fake directory create times = yes
valid users = admin, test
invalid users =
read list = admin, test
write list = admin, test
[Original (at MyPassport)]
comment = MyPassport's Original in WD My Passport 0740
path = /tmp/mnt/MyPassport/Original
dos filetimes = yes
fake directory create times = yes
valid users = admin, test
invalid users =
read list = admin, test
write list = admin, test
[TV (at MyPassport)]
comment = MyPassport's TV in WD My Passport 0740
path = /tmp/mnt/MyPassport/TV
dos filetimes = yes
fake directory create times = yes
valid users = admin, test
invalid users =
read list = admin, test
write list = admin, test
 
Can you give an example of the cifs mount command you are using.
I have it in
storage-recordings.mount
with this configuration:
[Unit]
Description=test cifs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=//192.168.0.2/MyPassport/Inspeladtv
Where=/storage/recordings
Options=username=admin,password=xxxxxx
# filesystem type
Type=cifs
[Install]
WantedBy=multi-user.target

Have tried with
[Unit]
Description=test cifs mount script
Requires=network-online.service
After=network-online.service
Before=kodi.service
[Mount]
What=//192.168.0.2/MyPassport/Inspeladtv
Where=/storage/recordings
Options=username=admin,password=xxxxxx,vers=2.1
# filesystem type
Type=cifs
[Install]
WantedBy=multi-user.target

But it will not mount
 
Make sure your Kodi box does support SMB2. I remember that for a long time, they used an old libsmb version that didn't support SMB2. I don't know if that has since changed.
 
Sorry I can't recreate the problem, even when I use your config. But then my client isn't Kodi.

Enabling SMB2 support on the router doesn't disable SMB1 support, so I suggest that you try forcing Kodi to use SMB1 instead.
 
Sorry I can't recreate the problem, even when I use your config. But then my client isn't Kodi.

Enabling SMB2 support on the router doesn't disable SMB1 support, so I suggest that you try forcing Kodi to use SMB1 instead.
Thanks for taking your time Colin
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top