1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Is this right? Official AsusWRT Samba uses SMBv1 only?

Discussion in 'ASUSWRT - Official' started by evildoer, Feb 14, 2018.

  1. evildoer

    evildoer Occasional Visitor

    May 19, 2017
    I had been using the Merlin branch of firmware since I first got my router, but wanted to try AIMesh with a second router (AC5300 + AC68u). I am running a USB3 RAID array that I have shared. As soon as I updated (from scratch, cleared settings) I could not see or connect to the share. After trying tons of things I enabled SMBv1 client support on my windows computers it suddenly started working.

    Are you telling me that this firmware only supports a broken sharing system that's disabled in Windows? Or am I doing something wrong?
  2. Please support SNBForums! Just click on this link before you buy something from Amazon and we'll get a small commission on anything you buy. Thanks!
  3. RMerlin

    RMerlin Super Moderator

    Apr 14, 2012
    No, that's correct. Asuswrt uses Samba 3.0.xx, which does not support SMBv2 (or anything newer).
  4. evildoer

    evildoer Occasional Visitor

    May 19, 2017
    That is ridiculous. Any idea if this is being looked into? Can we petition the devs or something? I knew I was taking a risk downgrading from your Merlin firmware, but this one is a shock.

    It's not even really asking for a new feature or anything, but more so a security update of an existing feature
    bigcid10 likes this.
  5. Blind@Spot

    [email protected] Occasional Visitor

    Jan 1, 2018
    we can highlight @arthurlien several times to get his attention :dull face: :p
    Grisu likes this.
  6. VANT

    VANT Very Senior Member

    Feb 4, 2015
    ridiculous is that You use "usb raid" for file sharing.

    I've never had problems with files sharing under windows when i use for this router.
    I did not have to turn anything on in windows.
  7. evildoer

    evildoer Occasional Visitor

    May 19, 2017
    Whats ridiculous about it?

    I am also not talking about file sharing, period. I am saying file sharing from the routers usb port to windows computers, etc.
  8. VANT

    VANT Very Senior Member

    Feb 4, 2015
    You use RAID so You backup important data with usb devices ??? this is ridiculous.
    as i said. For me file sharing work ok with my router 66u and 87u under windows 10.
  9. evildoer

    evildoer Occasional Visitor

    May 19, 2017
    Who said anything about backing up important data? Its mostly for streaming films to a couple of Fire TV devices and Windows computers.

    You are assuming.
  10. ColinTaylor

    ColinTaylor Part of the Furniture

    Mar 31, 2014
    The issue only affects new installs of the recent Windows 10 builds. Existing versions are unaffected.
  11. DummyPLUG

    DummyPLUG Regular Contributor

    Nov 27, 2017
    VANT likes this.
  12. VANT

    VANT Very Senior Member

    Feb 4, 2015
    i will check this.
    Now i use NAS for backup files.
  13. Klueless

    Klueless Senior Member

    Jan 1, 2016
    Rochester, NY
    As time moves on things change. Myself I find myself wishing Apple still supported my FAT (512K) Mac from 1985.

    Myself I always appreciated the esoteric features of my router but that's what they are ... esoteric. Print sharing extended the useful life of my ancient printer until I finally had to replace it. Built-in file sharing is like a free intro to file sharing before I spend money on a "real" file share. I simply "enabled" it and now I can see if I will really use it and what I really use it for before I invest real money. We can view family albums from our TV now but we don't really use it. I can backup my files but never do. Right now I'm playing with recording movies and TV shows onto my file share. Now that might actually be useful (for us anyway) when cable and/or the Internet goes down!

    My guess is print share and file share will disappear as routers reinvent themselves to handle gigabit Internet speeds and whole house WiFi for many, too many devices and IoT.

    My Windows 10 still supported v1 until it didn't (one of those auto magic updates). It is easily "enabled" through Windows File Manager by right clicking on "this PC" or by really re-enabling through "Windows Features" (which you might have to get from the Windows App Store since it's no longer standard with Windows 10 ; -)
    Last edited: Feb 16, 2018
  14. RMerlin

    RMerlin Super Moderator

    Apr 14, 2012
    Upgrading Samba brings multiple problems.

    1) Newer versions of Samba are much, MUCH bigger. Samba 4.x would take over half of the flash space of an RT-N66U for instance - it simply wouldn't fit with the rest
    2) Samba 4.x is a nightmare to cross compile. Netgear recently updated some of their routers to 4.x, and to do so they had to manually compile some elements and then insert these precompiled elements within the regular compile process. I have achieved the same thing myself on Asuswrt in my own tests, and scrapped the whole project because of the silly size of the resulting Samba footprint
    3) Samba 3.6.25 is fairly painless to cross-compile, and there are patches for it to make its size ab it more manageable. It would still be potentially too big for low-end router models
    4) The SMBv2 protocol carries close to 10% performance hit due to its higher CPU usage when running on a low-powered router. On high-end models that can barely reach 60 MB/s, we're talking dropping to 50 MB/s on average. On low-end models I didn't even bother benchmarking it...
    5) And upgrading to 3.6.25 is of limited usefulness, since that version is already EOL

    In theory, Asus could move to 3.6.25 (they could even reuse all my code there to save up development time - I've had 3.6.25 working for years on my firmware). But it also means dealing with users complaining about performance loss (some people complain when they see a dip in 2% in performance and refuse to upgrade their firmware because of this!), and it also means having to deal with the impact for lower end models like the RT-N300. And it wouldn't address the long-term issue of lack of security updates.

    The biggest problem here ultimately is Samba itself. Samba devs don't really care about the embedded market, and are more interested in NAS/server implementations, as seen by their work on adding Active Directory support and such. The embedded market need an alternative to Samba, and so far there is none.

    When someone asked the Samba devs a few years ago about better embedded device support, their answer was "Sure, send us patches, and we'll consider implementing them". In short, they're not going to devote development time on this.
    Klueless likes this.
  15. Mike808

    Mike808 Occasional Visitor

    Nov 21, 2016
    Well that sucks. Any chance samba support can be dropped from the 'low end' models in a modular way? At some point you just can't turn a pig's ear into a silk purse. Are those low end owners expecting high-end file sharing? EOL can apply to routers too.

    Can't blame Samba team entirely. MS isn't interested in running AD or DCs on anything less than beefy servers, so replicating functionality will require similar resources. Resources that embedded devices/appliances just don't have. Lots of features aren't available on Win Home. Have to upgrade to Pro (VMs, BitLocker, join a domain) or Server (AD PDC, VHDs, etc.) for SMB and ... security features.

    Samba/AD also rely heavily on certificates under the hood.
  16. RMerlin

    RMerlin Super Moderator

    Apr 14, 2012
    Removing features is usually a very bad idea. Some people bought those low-end router with the intent of sharing trivial things like photos or music within their LAN. A cleaner approach would be instead of keep these on 3.0, and move only higher-end models to 3.6 (or, if hell freezes over, 4.x). But it implies maintaining two separate versions (on top of the 3.5.8 version already there and dedicated to AiCloud - and no, can't really reuse that build for main sharing, since Asus customized the code).

    What bothers me with the Samba team is the fact that they don't want to make the code modular enough to run on low-resources embedded device, which are a pretty sizable market for Samba. And that they chose this bastardized build system that's a nightmare to use for cross compiling.
    Klueless likes this.
  17. sfx2000

    sfx2000 Part of the Furniture

    Aug 11, 2011
    San Diego, CA
    Samba 4 is a real beast for embedded devices - there is some nascent support for SMB2 in Samba 3, but it's really scary stuff there, and full of interop issues.

    As @RMerlin mentions - would be nice, but problematic - SMB1 is still there with Windows, and for other platforms that support SMB/CIFS, and good enough is..
  18. Shonk

    Shonk Senior Member

    May 7, 2014
    my amlogic s912 thats running libreelec has a cross compiled build of 4.6.10 thats tiny

    -rwxr-xr-x    1 root     root         71100 Jan  6 17:56 smbd
    smbd --version
    Version 4.6.10
    smbd -b
    Build environment:
       Built by:    [email protected]
       Built on:    Tue Nov 21 00:14:10 CET 2017
       Built using: /home/kszaq/ocz/le-master/build.LibreELEC-S912.arm-8.2-devel/toolchain/bin/armv8a-libreelec-linux-gnueabi-gcc
       Build host:  Linux cvm 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
       SRCDIR:      /home/kszaq/ocz/le-master/build.LibreELEC-S912.arm-8.2-devel/samba-4.6.10/source3
       BUILDDIR:    /home/kszaq/ocz/le-master/build.LibreELEC-S912.arm-8.2-devel/samba-4.6.10/source3
    Builtin modules:
       vfs_default auth_domain auth_builtin auth_sam auth_winbind pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_unix auth_wbc nss_info_template idmap_tdb idmap_passdb idmap_nss
    maybe you should take a peak at kszaq's github


  19. MilhouseVH

    MilhouseVH New Around Here

    Dec 28, 2010
    You're forgetting the shared libraries and supporting binaries/tools which are definitely not tiny at about 17.5MB for an RPi build of Samba 4.8.2:
    [email protected]:~/projects/LibreELEC.tv/build.LibreELEC-RPi.arm-9.0-devel/samba-4.8.2/.install_pkg$ find usr -type f -ls | sort -k7n
    -rw-rw-r--   1 neil   neil          176 Jun  5 00:18 usr/share/services/samba.conf
    -rw-rw-r--   1 neil   neil          423 Jun  5 00:18 usr/lib/systemd/system/nmbd.service
    -rw-rw-r--   1 neil   neil          441 Jun  5 00:18 usr/lib/systemd/system/smbd.service
    -rwxrwxr-x   1 neil   neil         1163 Jun  5 00:18 usr/lib/samba/samba-autoshare
    -rwxrwxr-x   1 neil   neil         2249 Jun  5 00:18 usr/lib/samba/samba-config
    -rwxrwxr-x   1 neil   neil         3771 Jun  5 00:18 usr/lib/samba/smbd-config
    -rw-rw-r--   1 neil   neil         4301 Jun  5 00:18 usr/config/samba.conf.sample
    -rwxr-xr-x   1 neil   neil         5328 Jun  5 00:18 usr/lib/libmsghdr-samba4.so
    -rwxr-xr-x   1 neil   neil         5328 Jun  5 00:18 usr/lib/libsocket-blocking-samba4.so
    -rwxr-xr-x   1 neil   neil         5328 Jun  5 00:18 usr/lib/libmessages-util-samba4.so
    -rwxr-xr-x   1 neil   neil         5328 Jun  5 00:18 usr/lib/libsys-rw-samba4.so
    -rwxr-xr-x   1 neil   neil         5328 Jun  5 00:18 usr/lib/libsmbd-shim-samba4.so
    -rwxr-xr-x   1 neil   neil         5328 Jun  5 00:18 usr/lib/libutil-setid-samba4.so
    -rwxr-xr-x   1 neil   neil         5376 Jun  5 00:18 usr/lib/libevents-samba4.so
    -rwxr-xr-x   1 neil   neil         5376 Jun  5 00:18 usr/lib/libsamba-cluster-support-samba4.so
    -rwxr-xr-x   1 neil   neil         5376 Jun  5 00:18 usr/lib/libflag-mapping-samba4.so
    -rwxr-xr-x   1 neil   neil         5376 Jun  5 00:18 usr/lib/libiov-buf-samba4.so
    -rwxr-xr-x   1 neil   neil         5376 Jun  5 00:18 usr/lib/libtalloc-report-samba4.so
    -rwxr-xr-x   1 neil   neil         5376 Jun  5 00:18 usr/lib/libtime-basic-samba4.so
    -rwxr-xr-x   1 neil   neil         5380 Jun  5 00:18 usr/lib/libgenrand-samba4.so
    -rwxr-xr-x   1 neil   neil         5400 Jun  5 00:18 usr/lib/libcluster-samba4.so
    -rwxr-xr-x   1 neil   neil         5428 Jun  5 00:18 usr/lib/libutil-reg-samba4.so
    -rwxr-xr-x   1 neil   neil         5428 Jun  5 00:18 usr/lib/libserver-role-samba4.so
    -rwxr-xr-x   1 neil   neil         5476 Jun  5 00:18 usr/lib/libcom_err-samba4.so.0.25
    -rwxr-xr-x   1 neil   neil         6199 Jun  5 00:13 usr/sbin/samba_gpoupdate
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libreplace-samba4.so
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libutil-tdb-samba4.so
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libtdb-wrap-samba4.so
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libsmbd-conn-samba4.so
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libinterfaces-samba4.so
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libserver-id-db-samba4.so
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libCHARSET3-samba4.so
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libtevent-util.so.0.0.1
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libMESSAGING-SEND-samba4.so
    -rwxr-xr-x   1 neil   neil         9472 Jun  5 00:18 usr/lib/libsamba-modules-samba4.so
    -rwxr-xr-x   1 neil   neil         9484 Jun  5 00:18 usr/lib/libwinbind-client-samba4.so
    -rwxr-xr-x   1 neil   neil         9884 Jun  5 00:18 usr/lib/libheimbase-samba4.so.1.0.0
    -rwxr-xr-x   1 neil   neil        13568 Jun  5 00:18 usr/lib/liblibcli-lsa3-samba4.so
    -rwxr-xr-x   1 neil   neil        13568 Jun  5 00:18 usr/lib/libnetif-samba4.so
    -rwxr-xr-x   1 neil   neil        13568 Jun  5 00:18 usr/lib/libnet-keytab-samba4.so
    -rwxr-xr-x   1 neil   neil        13568 Jun  5 00:18 usr/lib/libutil-cmdline-samba4.so
    -rwxrwxr-x   1 neil   neil        13676 Jun  5 00:18 usr/bin/smbtree
    -rwxr-xr-x   1 neil   neil        14576 Jun  5 00:18 usr/lib/libpopt-samba3-samba4.so
    -rwxr-xr-x   1 neil   neil        17664 Jun  5 00:18 usr/lib/libsmb-transport-samba4.so
    -rwxr-xr-x   1 neil   neil        17664 Jun  5 00:18 usr/lib/libcli-spoolss-samba4.so
    -rwxr-xr-x   1 neil   neil        17664 Jun  5 00:18 usr/lib/libasn1util-samba4.so
    -rwxr-xr-x   1 neil   neil        17664 Jun  5 00:18 usr/lib/libtrusts-util-samba4.so
    -rwxr-xr-x   1 neil   neil        17840 Jun  5 00:18 usr/lib/libsamba-debug-samba4.so
    -rwxr-xr-x   1 neil   neil        21760 Jun  5 00:18 usr/lib/liblibcli-netlogon3-samba4.so
    -rwxr-xr-x   1 neil   neil        21760 Jun  5 00:18 usr/lib/libcommon-auth-samba4.so
    -rwxr-xr-x   1 neil   neil        21764 Jun  5 00:18 usr/lib/libtalloc.so.2.1.11
    -rwxr-xr-x   1 neil   neil        25856 Jun  5 00:18 usr/lib/libcli-ldap-common-samba4.so
    -rwxr-xr-x   1 neil   neil        25908 Jun  5 00:18 usr/lib/libcli-cldap-samba4.so
    -rwxrwxr-x   1 neil   neil        25960 Jun  5 00:18 usr/bin/smbpasswd
    -rwxrwxr-x   1 neil   neil        25980 Jun  5 00:18 usr/bin/testparm
    -rwxr-xr-x   1 neil   neil        30004 Jun  5 00:18 usr/lib/libnpa-tstream-samba4.so
    -rwxr-xr-x   1 neil   neil        34048 Jun  5 00:18 usr/lib/libcli-nbt-samba4.so
    -rwxr-xr-x   1 neil   neil        34048 Jun  5 00:18 usr/lib/libsamba3-util-samba4.so
    -rwxr-xr-x   1 neil   neil        34048 Jun  5 00:18 usr/lib/libdbwrap-samba4.so
    -rwxr-xr-x   1 neil   neil        34100 Jun  5 00:18 usr/lib/libaddns-samba4.so
    -rwxr-xr-x   1 neil   neil        38144 Jun  5 00:18 usr/lib/libmessages-dgm-samba4.so
    -rwxr-xr-x   1 neil   neil        38144 Jun  5 00:18 usr/lib/libkrb5samba-samba4.so
    -rwxr-xr-x   1 neil   neil        38844 Jun  5 00:18 usr/lib/libroken-samba4.so.19.0.1
    -rwxr-xr-x   1 neil   neil        42240 Jun  5 00:18 usr/lib/libwbclient.so.0.14
    -rwxr-xr-x   1 neil   neil        42292 Jun  5 00:18 usr/lib/libndr-krb5pac.so.0.0.1
    -rwxr-xr-x   1 neil   neil        46352 Jun  5 00:18 usr/lib/libads-samba4.so
    -rwxr-xr-x   1 neil   neil        46392 Jun  5 00:18 usr/lib/libtevent.so.0.9.36
    -rwxr-xr-x   1 neil   neil        54596 Jun  5 00:18 usr/lib/libauthkrb5-samba4.so
    -rwxr-xr-x   1 neil   neil        58684 Jun  5 00:18 usr/lib/libcli-ldap-samba4.so
    -rwxr-xr-x   1 neil   neil        62732 Jun  5 00:18 usr/lib/libsamba-credentials.so.0.0.1
    -rwxr-xr-x   1 neil   neil        66816 Jun  5 00:18 usr/lib/libcliauth-samba4.so
    -rwxr-xr-x   1 neil   neil        70964 Jun  5 00:18 usr/lib/libndr-nbt.so.0.0.1
    -rwxr-xr-x   1 neil   neil        70976 Jun  5 00:18 usr/lib/libtdb.so.1.3.15
    -rwxr-xr-x   1 neil   neil        71016 Jun  5 00:18 usr/lib/libndr.so.0.1.0
    -rwxr-xr-x   1 neil   neil        75060 Jun  5 00:18 usr/lib/libsamba-sockets-samba4.so
    -rwxr-xr-x   1 neil   neil        75188 Jun  5 00:18 usr/sbin/smbd
    -rwxr-xr-x   1 neil   neil        79104 Jun  5 00:18 usr/lib/libsecrets3-samba4.so
    -rwxr-xr-x   1 neil   neil        79168 Jun  5 00:18 usr/lib/libprinting-migrate-samba4.so
    -rwxr-xr-x   1 neil   neil        83608 Jun  5 00:18 usr/lib/libsamdb.so.0.0.1
    -rwxr-xr-x   1 neil   neil        95608 Jun  5 00:18 usr/lib/libsamba-security-samba4.so
    -rwxr-xr-x   1 neil   neil       103732 Jun  5 00:18 usr/lib/libdcerpc-binding.so.0.0.1
    -rwxr-xr-x   1 neil   neil       111924 Jun  5 00:18 usr/lib/libmsrpc3-samba4.so
    -rwxr-xr-x   1 neil   neil       124160 Jun  5 00:18 usr/lib/libauth-samba4.so
    -rwxr-xr-x   1 neil   neil       126800 Jun  5 00:18 usr/lib/libsamba-hostconfig.so.0.0.1
    -rwxr-xr-x   1 neil   neil       128256 Jun  5 00:18 usr/lib/libsmbclient.so.0.3.1
    -rwxr-xr-x   1 neil   neil       136552 Jun  5 00:18 usr/lib/libgse-samba4.so
    -rwxr-xr-x   1 neil   neil       140872 Jun  5 00:18 usr/lib/libldbsamba-samba4.so
    -rwxr-xr-x   1 neil   neil       148512 Jun  5 00:18 usr/lib/libgssapi-samba4.so.2.0.0
    -rwxr-xr-x   1 neil   neil       152884 Jun  5 00:18 usr/lib/libcli-smb-common-samba4.so
    -rwxr-xr-x   1 neil   neil       152956 Jun  5 00:18 usr/lib/libgensec-samba4.so
    -rwxr-xr-x   1 neil   neil       153032 Jun  5 00:18 usr/lib/libsamdb-common-samba4.so
    -rwxr-xr-x   1 neil   neil       157052 Jun  5 00:18 usr/lib/libldb.so.1.3.3
    -rwxr-xr-x   1 neil   neil       161256 Jun  5 00:18 usr/lib/libwind-samba4.so.0.0.0
    -rwxr-xr-x   1 neil   neil       166532 Jun  5 00:18 usr/lib/libhcrypto-samba4.so.5.0.1
    -rwxr-xr-x   1 neil   neil       202320 Jun  5 00:18 usr/lib/libhx509-samba4.so.5.0.0
    -rwxr-xr-x   1 neil   neil       218420 Jun  5 00:18 usr/lib/libsamba-passdb.so.0.27.0
    -rwxr-xr-x   1 neil   neil       218504 Jun  5 00:18 usr/sbin/nmbd
    -rwxr-xr-x   1 neil   neil       314204 Jun  5 00:18 usr/lib/libkrb5-samba4.so.26.0.0
    -rwxr-xr-x   1 neil   neil       328960 Jun  5 00:18 usr/lib/libnetapi.so.0
    -rwxr-xr-x   1 neil   neil       353536 Jun  5 00:18 usr/lib/liblibsmb-samba4.so
    -rwxr-xr-x   1 neil   neil       372696 Jun  5 00:18 usr/lib/libasn1-samba4.so.8.0.0
    -rwxrwxr-x   1 neil   neil       420856 Jun  5 00:18 usr/bin/smbclient
    -rwxr-xr-x   1 neil   neil       435664 Jun  5 00:18 usr/lib/libsamba-util.so.0.0.1
    -rwxr-xr-x   1 neil   neil       448696 Jun  5 00:18 usr/lib/libsmbconf.so.0
    -rwxr-xr-x   1 neil   neil       963892 Jun  5 00:18 usr/lib/libsamba-errors.so.1
    -rwxr-xr-x   1 neil   neil      1062196 Jun  5 00:18 usr/lib/libndr-samba-samba4.so
    -rwxr-xr-x   1 neil   neil      1299712 Jun  5 00:18 usr/lib/libdcerpc-samba-samba4.so
    -rwxr-xr-x   1 neil   neil      1328440 Jun  5 00:18 usr/lib/libndr-samba4.so
    -rwxr-xr-x   1 neil   neil      2856244 Jun  5 00:18 usr/lib/libndr-standard.so.0.0.1
    -rwxr-xr-x   1 neil   neil      2870644 Jun  5 00:18 usr/lib/libsmbd-base-samba4.so
    [email protected]:~/projects/LibreELEC.tv/build.LibreELEC-RPi.arm-9.0-devel/samba-4.8.2/.install_pkg$ du -sk usr
    17544   usr
    All of the above binaries are stripped.

    Building Samba 4 is a PITA, but possible. However if the storage space isn't there in the flash, then that makes life... difficult.

    SMB1 really does need to die, and the sooner the better.
  20. bbunge

    bbunge Senior Member

    Aug 11, 2014
    Could code like this be run from a USB thumb drive?

    Sent from my P01M using Tapatalk
  21. Mike808

    Mike808 Occasional Visitor

    Nov 21, 2016
    @bbunge might have something. Can it be packaged and downloaded like the other 'apps', and installed to the flash drive that is shared?

    If you need it, you clearly have a flash drive you want to share, so why not use the required USB flash drive itself to be shared as the storage for the package/code?
Please support SNBForums! Just click on this link before you buy something from Amazon and we'll get a small commission on anything you buy. Thanks!