STEVE MARASPIN / BESIDES SOFTWARE

Asus Router Samba share issues with Linux – Fixed!

How I got my Linux Mint access samba shares on my ASUS RT-N18U with ASUSWRT

I’ve recently tried setting up Samba sharing on my Asus RT-N18U Wireless Router with latest available official ASUSWRT software (3.0.0.4.378_9545-ge20f0c3). In order to achieve this, I followed what seemed a logical menu path:

USB Application -> Media Services -> “Network Place (Samba) Share / Cloud Disk”

No big deal so far, and then no issues either in creating and assigning permissions to users:

Unfortunately, what seemed (and should have been) a simple operation didn’t bring expected results. In fact, whenever I was attempting to access samba shares from my PC running Linux Mint (v. 17.2 Rafaela), I was either repeatedly re-asked for a password, or facing connection timed out errors. Samba sharing simply seemed not to be working.

A quick lookup on the Internet helped me not, as no other seemed to be facing the same issue. Or – at least – I have been unable to find a solution. So I have started to investigate a bit myself, using my old time friend, the powerful Linux command line. What I have discovered using smbclient is that there were some configuration issues:

/usr/bin/smbclient -L jerk
 WARNING: The "syslog" option is deprecated
 Enter root's password:
Server does not support EXTENDED_SECURITY but 'client use spnego = yes and 'cli

 

Notejerk is the name of my router; replace it with your own router name, if you wish to reproduce the above

In order to fix this, I have added the following two lines:

client NTLMv2 auth = no
client use spnego = no

 

within the global section (look for a [global] entry) of my local samba configuration file – which is /etc/samba/smb.conf on my PC. Then I also added the following to a newly created smb.conf file within a – newly created – .smb directory within my user’s home: That means the /home/MY_USER/.smb/smb.conf file now contains the following:

[global]
 client NTLMv2 auth = no
 client use spnego = no

 

I then reloaded my local samba server (I don’t know/think this was necessary) with the following:

service samba restart

 

The trick allowed me to get Samba sharing working.

I’m afraid others might face the same problem, so here it is what I did in order to make my Asus RT-N18U router Samba share work with my Linux Mint PC. If this helps you, let me know. Surely getting some feedback would encourage me to write other similar posts in the future.

 

CC Attribute CC Attribute CC Attribute Unless otherwise specified, all content of this website has been created by me, Stefano (Steve) Maraspin and is licensed under a creative commons share-alike license. You can use stuff freely, but I ask you to link to this website. Read more about this at this page.

8 comments Post a comment
  1. Kent said:

    Thank you so much! This solved my problem in Ubuntu 16.04 accessing my Asus RT-AC56U! Very much appreciate the solution!

  2. Moswu said:

    Godly amazing!! Your solution solves my SMB connection problem between RT-N18U and my LibreELEC box(mxq pro 4k). Good job!!

  3. Martin said:

    Awesome. Worked a treat on Ubuntu 16.04.

  4. de Turckheim Nicolas said:

    Hi,

    Thx for your brain u did it smartly. ;) Work also for RT-AC68U & Ubuntu.

  5. JN said:

    Wizardry that works. Thank you. I think this is a problem – a Mint problem? An Asus problem – that should be fixed, i.e. we should not need this hack.

  6. Andy said:

    Had the same issue with ASUS RT-AC68P wireless router. Using LMDE version. Was pulling my hair out, glad you posted this work around. Even got Gigalo working like it should. Thanks

  7. Marian Caraiman said:

    Same issue here with same router, Linux 18 Sarah. You’re the man !! (for me the change did not require to restart samba server )

  8. Pat said:

    Worked for me. Thanks.

Leave a Reply to Andy Cancel reply

Your email address will not be published. Required fields are marked *

*


*