What's new

Usb samba sharing don't work dsl-68u

  • 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!

dadada12

Occasional Visitor
Hi everyone, I have a problem with my dsl-68u with the latest version of Merlin firmware installed.
II have activated the samba USB sharing with the following settings, however the device is seen by the pc but does not connect, returning a connection error. I tried to change the various settings and device (Android client) but the result doesn't change.
I specify that with the same settings in the stock firmware it worked perfectly. Disk access via network (Cloud disk) works. What could be the problem?
Thank you
 

Attachments

  • Screenshot_2021-04-25-20-04-12-765_com.microsoft.emmx~2.jpg
    Screenshot_2021-04-25-20-04-12-765_com.microsoft.emmx~2.jpg
    41.1 KB · Views: 153
In the time I used a DSL-AC68U with @GNUton firmware - I had zero issues with the Router's Samba Share - with Linux / Windows and Android devices finding it easily [with early firmware I did find it still needed both SMB1 and SMB2 for all devices to find it [some legacy ones not up to SMB2 protocols could not see the share].

I do see a possible problem with your settings page ...
  • "nome del dispositivo" [or Device Name] defaults to the Routers name [in my case DSL-AC68U-???];
  • "gruppo di lavoro" [or Work Group] should be set as the Windows Workgroup name defined in your network or the domain name if devices are connecting via an internal domain. Windows workgroup normally defaults to "workgroup".
I am not sure it is wise to use the name USB for both of the above as you have done.
 
I tried to change the name to a different one and as recommended but it doesn't work. From Windows I get the following error "The remote device or resource is not accepting the connection. The device or resource is not configured to accept connections on the" File and Printer Sharing (SMB) "port"
 
I tried to change the name to a different one and as recommended but it doesn't work. From Windows I get the following error "The remote device or resource is not accepting the connection. The device or resource is not configured to accept connections on the" File and Printer Sharing (SMB) "port"
That error message appears to be incomplete.

What exactly did you do/type that caused that error to appear and were there any other messages? What version of Windows are you using?
 
I typed "\\ 192.168.1.1", or "\\ name_router \ name_share" or in network resources I opened the network device. I am using Windows 10 and have the smbv1 option enabled.
In all cases the message "unable to establish a connection" appears immediately. The same problem appears with an android phone where I get the same error message.
I specify that with the same settings and the stock firmware it worked perfectly.
 
I cannot recreate this error. It may be a bug that is specific to the GNUton firmware you're using. Can you SSH into the router and post the output of this command please.
Code:
netstat -nlp | grep mbd
 
This is a output of command.
 

Attachments

  • Screenshot_2021-04-27-00-04-03-047_com.sonelli.juicessh.jpg
    Screenshot_2021-04-27-00-04-03-047_com.sonelli.juicessh.jpg
    54.8 KB · Views: 136
OK well that explains a lot. The SMB/CIFS server (smbd) is not running, only the name server (nmbd) is. Which explains why you can detect the server but cannot connect to it.

I don't know why that is because I don't use GNUton's firmware. If you post the complete output from the following commands I can compare it to mine and see if there are any obvious problems.
Code:
ps w
cat /etc/smb.conf
netstat -nlp
Otherwise you could report it as a bug in the GNUton thread.
 
Thanks for your help. This is output command:
Code:
ASUSWRT-Merlin DSL-AC68U 386.02_1-gnuton1 Sat Apr 17 05:33:53 UTC 2021
metamorfeo-guDy7bf4@Metamorfeo:/tmp/home/root# ps w
  PID USER       VSZ STAT COMMAND
    1 metamorf  8696 S    /sbin/preinit
    2 metamorf     0 SW   [kthreadd]
    3 metamorf     0 SW   [ksoftirqd/0]
    4 metamorf     0 SW   [kworker/0:0]
    5 metamorf     0 SW   [kworker/u:0]
    6 metamorf     0 SW   [migration/0]
    7 metamorf     0 SW   [migration/1]
    8 metamorf     0 SW   [kworker/1:0]
    9 metamorf     0 SW   [ksoftirqd/1]
   10 metamorf     0 SW<  [khelper]
   11 metamorf     0 SW   [sync_supers]
   12 metamorf     0 SW   [bdi-default]
   13 metamorf     0 SW<  [kblockd]
   14 metamorf     0 SW   [kswapd0]
   15 metamorf     0 SW   [fsnotify_mark]
   16 metamorf     0 SW<  [crypto]
   24 metamorf     0 SW   [mtdblock0]
   25 metamorf     0 SW   [mtdblock1]
   26 metamorf     0 SW   [mtdblock2]
   27 metamorf     0 SW   [mtdblock3]
   28 metamorf     0 SW   [kworker/u:1]
   35 metamorf     0 SW   [kworker/0:1]
   36 metamorf     0 SW   [kworker/1:1]
   37 metamorf     0 SW   [mtdblock4]
   38 metamorf     0 SW   [mtdblock5]
   40 metamorf   668 S    hotplug2 --persistent --no-coldplug
   46 metamorf     0 SWN  [jffs2_gcd_mtd4]
  111 metamorf  8004 S    console
  114 metamorf  8004 S    /sbin/PS_pod
  156 metamorf  2664 S    tp_init
  226 metamorf  8012 S    /sbin/wanduck
  231 metamorf  1484 S    lldpd -L /usr/sbin/lldpcli -I vlan1,eth1,eth2,wds0.*,wds1.*,wds2.* -s DSL-AC68U
  235 nobody    1460 S    lldpd -L /usr/sbin/lldpcli -I vlan1,eth1,eth2,wds0.*,wds1.*,wds2.* -s DSL-AC68U
  246 metamorf  5264 S    asd
  251 metamorf  6536 S    nt_monitor
  252 metamorf  2748 S    protect_srv
  253 metamorf  8028 S    /sbin/netool
  257 metamorf  8028 S    /sbin/netool
  258 metamorf  8028 S    /sbin/netool
  260 metamorf  6536 S    nt_monitor
  261 metamorf  6536 S    nt_monitor
  263 metamorf  6832 S    nt_center
  275 metamorf  6832 S    nt_center
  276 metamorf  6832 S    nt_center
  279 metamorf  2748 S    protect_srv
  280 metamorf  2748 S    protect_srv
  281 metamorf  1376 S    /bin/eapd
  283 metamorf  8008 S    wpsaide
  284 metamorf  2732 S    /usr/sbin/wlc_nt
  325 metamorf  2072 S    nas
  334 metamorf  2876 S    /usr/sbin/wlceventd
  358 metamorf  6536 S    nt_monitor
  362 metamorf  2164 S    nt_actMail
  371 metamorf  2164 S    nt_actMail
  372 metamorf  2164 S    nt_actMail
  879 metamorf  1620 S    /usr/sbin/acsd
  890 metamorf  1448 S    crond -l 9
  891 metamorf  7000 S    httpd -i br0
  892 metamorf  1340 S    /usr/sbin/infosvr br0
  894 metamorf  1320 S    spectrum
  895 metamorf  1640 S    sysstate
  896 metamorf  4808 S    ahs
  897 metamorf  8044 S    watchdog
  898 metamorf  8004 S    check_watchdog
  904 metamorf  2928 S    rstats
  913 metamorf  1384 S    lld2d br0
  915 metamorf  8248 S    networkmap --bootwait
  932 metamorf 14684 S    /usr/sbin/lighttpd -f /tmp/lighttpd.conf -D
  933 metamorf 11176 S    /usr/sbin/lighttpd-monitor
  935 metamorf  6724 S    mastiff
  936 metamorf  8008 S    bwdpi_check
  938 metamorf  8008 S    pctime
  975 metamorf  8084 S    roamast
  977 metamorf  8260 S    conn_diag
  978 metamorf  8008 S    erp_monitor
  981 metamorf  8260 S    conn_diag
  982 metamorf  8260 S    conn_diag
  984 metamorf  8164 S    amas_lib
 1014 metamorf     0 SW   [khubd]
 1028 metamorf  6724 S    mastiff
 1029 metamorf  6724 S    mastiff
 1030 metamorf  6724 S    mastiff
 1052 metamorf  1452 S    /sbin/udhcpc -i vlan835 -p /var/run/udhcpc0.pid -s /tmp/udhcpc -O33 -O249
 1055 metamorf  6044 S    cfg_server
 1063 metamorf  1392 S    /usr/sbin/pppd file /tmp/ppp/options.wan0
 1193 metamorf  8164 S    amas_lib
 1208 metamorf  4808 S    ahs
 1209 metamorf  4808 S    ahs
 1210 metamorf  4808 S    ahs
 1258 metamorf  8008 S    disk_monitor
 1259 metamorf  8084 S    roamast
 1260 metamorf  8084 S    roamast
 1263 metamorf  8084 S    roamast
 1274 metamorf  8084 S    roamast
 1281 metamorf  1444 S    /sbin/zcip -p /var/run/zcip0.pid vlan835 /tmp/zcip
 1292 metamorf  6044 S    cfg_server
 1293 metamorf  6044 S    cfg_server
 1304 metamorf 11616 S    /usr/sbin/lighttpd-arpping -f br0
 1450 metamorf  3616 S    dcd -i 3600 -p 43200 -b -d /tmp/bwdpi/
 1454 metamorf  7936 S    wred -B
 1456 metamorf  7936 S    wred -B
 1457 metamorf  7936 S    wred -B
 1458 metamorf  3616 S    dcd -i 3600 -p 43200 -b -d /tmp/bwdpi/
 1459 metamorf  3616 S    dcd -i 3600 -p 43200 -b -d /tmp/bwdpi/
 1461 metamorf  3616 S    dcd -i 3600 -p 43200 -b -d /tmp/bwdpi/
 1462 metamorf  3616 S    dcd -i 3600 -p 43200 -b -d /tmp/bwdpi/
 1463 metamorf  3616 S    dcd -i 3600 -p 43200 -b -d /tmp/bwdpi/
 1500 metamorf  8008 S    bwdpi_wred_alive
 1512 metamorf  7936 S    wred -B
 1513 metamorf  7936 S    wred -B
 1514 metamorf  7936 S    wred -B
 1515 metamorf  7936 S    wred -B
 1516 metamorf  7936 S    wred -B
 1517 metamorf  7936 S    wred -B
 1518 metamorf  7936 S    wred -B
 1519 metamorf  7936 S    wred -B
 1557 nobody    3356 S    dnsmasq --log-async
 1558 metamorf  3216 S    dnsmasq --log-async
 2420 metamorf  1464 S    /usr/sbin/ntp -t -S /sbin/ntpd_synced -p pool.ntp.org -p time.nist.gov
 2423 metamorf  1444 S    /sbin/syslogd -m 0 -S -O /tmp/syslog.log -s 256 -l 6
 2425 metamorf  1444 S    /sbin/klogd -c 5
 2432 metamorf  1116 S    dropbear -p 192.168.1.1:22 -j -k
 2451 metamorf   660 S    /usr/sbin/sd-idle-2.6 -i 60
 2682 metamorf     0 SW   [flush-mtd-unmap]
 2806 metamorf  1136 R    dropbear -p 192.168.1.1:22 -j -k
 2807 metamorf  1456 S    -sh
 3115 metamorf     0 SW   [scsi_eh_0]
 3116 metamorf     0 SW   [usb-storage]
 3181 metamorf     0 SW   [tntfsiupdated]
 3203 metamorf     0 SW   [flush-8:0]
 3212 nobody    1544 S    avahi-daemon: running [Metamorfeo.local]
 3228 metamorf  5832 S    /usr/sbin/nmbd -D -s /etc/smb.conf
 3229 metamorf  5520 S    /usr/sbin/nmbd -D -s /etc/smb.conf
 3230 metamorf  5720 R    /usr/sbin/smbd -D -s /etc/smb.conf
 3232 metamorf   676 S    /usr/sbin/wsdd2 -d -w -i br0 -b sku:DSL-AC68U,serial:a85e45de2a80
 3639 metamorf  1448 R    ps w
 3640 metamorf  8044 R    watchdog
 7583 metamorf  3616 S    dcd -i 3600 -p 43200 -b -d /tmp/bwdpi/
metamorfeo-guDy7bf4@Metamorfeo:/tmp/home/root# cat /etc/smb.conf
[global]
netbios name = METAMORFEO
server string = DSL-AC68U
workgroup = METAMORFEO
username level = 20
unix charset = UTF8
display charset = UTF8
load printers = no
printing = bsd
printcap name = /dev/null
log file = /var/log/samba.log
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
obey pam restrictions = no
use spnego = yes
client use spnego = no
disable spoolss = yes
host msdfs = no
strict allocate = no
wide links = 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 = no
dos filemode = yes
oplocks = yes
level2 oplocks = yes
kernel oplocks = no
wins support = yes
enable core files = no
deadtime = 30
load printers = no
printable = no
max protocol = SMB2
min protocol = SMB2
smb encrypt = disabled
min receivefile size = 16384
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
[Condivisi (at Chiavetta_USB)]
comment = Chiavetta_USB's Condivisi in Kingston DataTraveler 3.0
path = /tmp/mnt/Chiavetta_USB/Condivisi
dos filetimes = yes
fake directory create times = yes
valid users = metamorfeo-guDy7bf4, casa
invalid users =
read list = metamorfeo-guDy7bf4, casa
write list = metamorfeo-guDy7bf4, casa
[Metamorfeo (at Chiavetta_USB)]
comment = Chiavetta_USB's Metamorfeo in Kingston DataTraveler 3.0
path = /tmp/mnt/Chiavetta_USB/Metamorfeo
dos filetimes = yes
fake directory create times = yes
valid users = metamorfeo-guDy7bf4, casa
invalid users =
read list = metamorfeo-guDy7bf4, casa
write list = metamorfeo-guDy7bf4, casa
[Patroclo (at Chiavetta_USB)]
comment = Chiavetta_USB's Patroclo in Kingston DataTraveler 3.0
path = /tmp/mnt/Chiavetta_USB/Patroclo
dos filetimes = yes
fake directory create times = yes
valid users = metamorfeo-guDy7bf4, casa
invalid users =
read list = metamorfeo-guDy7bf4, casa
write list = metamorfeo-guDy7bf4, casa
metamorfeo-guDy7bf4@Metamorfeo:/tmp/home/root# netstat -nlp
 
Thanks for that. Can you post the output of these four commands.

Code:
netstat -anp | grep -E "139|445"
tail -19 /var/log/log.smbd
tail -19 /var/log/log.nmbd
tail -19 /var/log/samba.log
 
Resolved. The problem was that they use a username with too many characters. Using a shorter name (15 characters) the server started working correctly. Thanks again for the help.
 

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