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!

The path is wrong. "adblocking" is not a share name. The names in your config are "optware" and "share".

So you need to use "\\SKYNET\optware" or "\\SKYNET\optware\adblocking".

Note: The path is different when you are not using guest sharing. In that case you would remove the "optware" part and specify the individually shared folders. Or to put it another way, with guest sharing there is one single share for an entire partition. Without guest sharing you share individual folders within the partition.

Will try the logging. In relation to the mapping you are right that is the wrong syntax. But I never tried to map adblocking!!!!! Sorry I should have mentioned. I tried the following:

\\skynet\optware
\\skynet\optware\entware
\\skynet\share
\\skynet\share\download

tried also with the IP 192.168.1.1 instead skynet. same result. I also set winsserver and master browser option off.
 
no extra info in the log with logging enabled. I really think that SMB2 is not working with AC88U

here my smb.conf after reconnecting the original drive and windows error message

plocks = yes
level2 oplocks = yes
kernel oplocks = no
wide links = no
[optware]
comment = Generic Flash Disk's optware
veto files = /.__*.txt*/asusware*/asus_lighttpdpasswd/
path = /tmp/mnt/optware
writeable = yes
dos filetimes = yes
fake directory create times = yes
[TOURO]
comment = HGST 's TOURO
veto files = /.__*.txt*/asusware*/asus_lighttpdpasswd/
path = /tmp/mnt/TOURO
writeable = yes
dos filetimes = yes
fake directory create times = yes

if I try to map from scratch:
upload_2017-8-11_23-41-27.png


If I click on the mapped drive which works with SMB1 enabled

upload_2017-8-11_23-43-18.png
 

Attachments

  • upload_2017-8-11_23-41-7.png
    upload_2017-8-11_23-41-7.png
    249.3 KB · Views: 283
We're missing most of the file.

sorry same as before just added the old drive

Code:
[global]
workgroup = home
netbios name = Skynet
server string = Skynet
unix charset = UTF8
display charset = UTF8
log file = /var/log.samba
log level = 2
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
max protocol = SMB2
passdb backend = smbpasswd
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
enable core files = no
deadtime = 30
load printers = no
min receivefile size = 16384
force directory mode = 0777
force create mode = 0777
max connections = 5
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=131072 SO_SNDBUF=131072
obey pam restrictions = no
disable spoolss = yes
host msdfs = no
strict allocate = No
bind interfaces only = yes
interfaces = lo br0 192.168.1.1/255.255.255.0
use sendfile = yes
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
wide links = no
[optware]
comment = Generic Flash Disk's optware
veto files = /.__*.txt*/asusware*/asus_lighttpdpasswd/
path = /tmp/mnt/optware
writeable = yes
dos filetimes = yes
fake directory create times = yes
[TOURO]
comment = HGST 's TOURO
veto files = /.__*.txt*/asusware*/asus_lighttpdpasswd/
path = /tmp/mnt/TOURO
writeable = yes
dos filetimes = yes
fake directory create times = yes
 
OK. I officially give up. :( I've just used your config file on my router and it works perfectly.

So now we need someone else to try SMB2 on their router to determine whether it's specific to you or a bug in @RMerlin 's firmware.
 
I give up myself :)

yes need somebody with an AC88u to try.... Disable SMB1 from windows features, enable SMB2 on router and try to map a drive....
 
I think the problem with your config is the guest related settings...

I'm using SMB2 with this config file.

Code:
[global]
workgroup = WORKGROUP
netbios name = xxxxxxxxxxxxxxx
server string = xxxxxxxxxxxxxxx
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 = Never
encrypt passwords = yes
pam password change = no
null passwords = no
max protocol = SMB2
passdb backend = smbpasswd
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
enable core files = no
deadtime = 30
load printers = no
min receivefile size = 16384
force directory mode = 0777
force create mode = 0777
max connections = 10
obey pam restrictions = no
disable spoolss = yes
host msdfs = no
strict allocate = No
bind interfaces only = yes
interfaces = lo br0 192.168.1.1/255.255.255.0
use sendfile = yes
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
wide links = no
[DATA]
comment = ZALMAN External HDD's DATA
path = /tmp/mnt/DATA
dos filetimes = yes
fake directory create times = yes
valid users = admin
invalid users =
read list = admin
write list = admin
[ENTWARE]
comment = Kingston DataTraveler 2.0's ENTWARE
path = /tmp/mnt/ENTWARE
dos filetimes = yes
fake directory create times = yes
valid users = admin
invalid users =
read list = admin
write list = admin

Jut change the shares names to yours, go to \\192.168.1.1, you'll be asked for your user (admin) and password and that's all.
It's not optimized for performance (never got the time to test) but it will give you access to the router storage :)
 
I think the problem with your config is the guest related settings...

I'm using SMB2 with this config file.

Jut change the shares names to yours, go to \\192.168.1.1, you'll be asked for your user (admin) and password and that's all.
It's not optimized for performance (never got the time to test) but it will give you access to the router storage :)

are you using AC88U with latest merlin firmware?
 
No, AC56U.

And by the way, the simplest way to use my config is to save it to a file, let's say smb2.conf
Put this in your smb.postconf

Code:
#!/bin/sh

for pid in $(ps -w | grep [s]mbd | awk '{ print $1 }')
do
    kill $pid 2> /dev/null
done
smbd -D -s 'path to smb2.conf'
 
Is not the same... As it was not working for me either, I modified couple of params by hand and used that smb.postconf script to load the new config file.
 
Try the latest 380.68 alpha build, it implements two fixes for SMB2 mode.
 
Is not the same... As it was not working for me either, I modified couple of params by hand and used that smb.postconf script to load the new config file.

if I add your changes I get this

Code:
Aug 12 19:34:19 custom_script: Running /jffs/scripts/smb.postconf (args: /etc/smb.conf)
Aug 12 19:34:20 Samba_Server: daemon is started
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.537058,  0] lib/util_sock.c:667(open_socket_in)
Aug 12 19:34:20 smbd[14252]:   bind failed on port 445 socket_addr = 192.168.1.1.
Aug 12 19:34:20 smbd[14252]:   Error = Address already in use
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.537556,  0] smbd/server.c:628(smbd_open_one_socket)
Aug 12 19:34:20 smbd[14252]:   smbd_open_once_socket: open_socket_in: Address already in use
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.537811,  0] lib/util_sock.c:667(open_socket_in)
Aug 12 19:34:20 smbd[14252]:   bind failed on port 139 socket_addr = 192.168.1.1.
Aug 12 19:34:20 smbd[14252]:   Error = Address already in use
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.538067,  0] smbd/server.c:628(smbd_open_one_socket)
Aug 12 19:34:20 smbd[14252]:   smbd_open_once_socket: open_socket_in: Address already in use
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.538258,  0] lib/util_sock.c:667(open_socket_in)
Aug 12 19:34:20 smbd[14252]:   bind failed on port 445 socket_addr = 127.0.0.1.
Aug 12 19:34:20 smbd[14252]:   Error = Address already in use
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.538497,  0] smbd/server.c:628(smbd_open_one_socket)
Aug 12 19:34:20 smbd[14252]:   smbd_open_once_socket: open_socket_in: Address already in use
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.538699,  0] lib/util_sock.c:667(open_socket_in)
Aug 12 19:34:20 smbd[14252]:   bind failed on port 139 socket_addr = 127.0.0.1.
Aug 12 19:34:20 smbd[14252]:   Error = Address already in use
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.538942,  0] smbd/server.c:628(smbd_open_one_socket)
Aug 12 19:34:20 smbd[14252]:   smbd_open_once_socket: open_socket_in: Address already in use
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.539112,  0] smbd/server.c:796(open_sockets_smbd)
Aug 12 19:34:20 smbd[14252]:   open_sockets_smbd: No sockets available to bind to.
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.539493,  0] smbd/server_exit.c:184(exit_server_common)
Aug 12 19:34:20 smbd[14252]:   ===============================================================
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.539716,  0] smbd/server_exit.c:186(exit_server_common)
Aug 12 19:34:20 smbd[14252]:   Abnormal server exit: open_sockets_smbd() failed
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.539899,  0] smbd/server_exit.c:187(exit_server_common)
Aug 12 19:34:20 smbd[14252]:   ===============================================================
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.540102,  0] lib/util.c:1271(log_stack_trace)
Aug 12 19:34:20 smbd[14252]:   unable to produce a stack trace on this platform
Aug 12 19:34:20 smbd[14252]: [2017/08/12 19:34:20.540248,  0] lib/fault.c:345(dump_core)
Aug 12 19:34:20 smbd[14252]:   Exiting on internal error (core file administratively disabled)
 
Please use the smb.postconf script I posted to load the new config file.

that's what I did !!

script

Code:
#!/bin/sh

for pid in $(ps -w | grep [s]mbd | awk '{ print $1 }')
do
    kill $pid 2> /dev/null
done
smbd -D -s '/tmp/etc/smb2.conf'

Code:
[global]
workgroup = home
netbios name = Skynet
server string = Skynet
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 = Never
encrypt passwords = yes
pam password change = no
null passwords = no
max protocol = SMB2
passdb backend = smbpasswd
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
enable core files = no
deadtime = 30
load printers = no
min receivefile size = 16384
force directory mode = 0777
force create mode = 0777
max connections = 10
obey pam restrictions = no
disable spoolss = yes
host msdfs = no
strict allocate = No
bind interfaces only = yes
interfaces = lo br0 192.168.1.1/255.255.255.0
use sendfile = yes
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
wide links = no
[Acronis True Image 2016.19.0.5634 + BootCD Multilang [deepstatus]]
comment = TOURO's Acronis True Image 2016.19.0.5634 + BootCD Multilang [deepstatus] in HGST
path = /tmp/mnt/TOURO/Acronis True Image 2016.19.0.5634 + BootCD Multilang [deepstatus]
dos filetimes = yes
fake directory create times = yes
valid users = admin
invalid users =
read list = admin
write list = admin
[atheros1]
comment = TOURO's atheros1 in HGST
path = /tmp/mnt/TOURO/atheros1
dos filetimes = yes
fake directory create times = yes
valid users = admin
alid users = admin
invalid users =
read list = admin
write list =
[B]
comment = TOURO's B in HGST
path = /tmp/mnt/TOURO/B
dos filetimes = yes
fake directory create times = yes
valid users = admin
invalid users =
read list = admin
write list = admin
 
What do you get if you restart the Windows 10 machine and then try to access \\192.168.1.1 ?

BTW, the path to smb2.conf is not between ' '
I just put them to emphasize there is a path.
Sorry for the confusion as I don't really know if smbd is accepting a quoted string there...
 
Last edited:

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