Samba share for Asus router connected USB device
I connected an USB storage to my Asus RT-N66U router to be accessed via the samba network protocol. I can now use Nautilus to access and modify the files on this device.
However, this didn't work at first.
Configuration on the router
For the Samba Share to be password protected, a username and password must be created with read/write permissions on the share.
Configuration:
| Setting | Value | Comment |
|---|---|---|
| Server-name: | rt-n66u | Is the name of the router, you can also use the IP address |
| Workgroup: | WORKGROUP | Doesn't matter much, maybe needed for Windows |
| Device: | USB-label1 | Is not used |
| Shared folder: | shared1 | |
| Sub-folder: | / | |
| User: | user1 | |
| Password: | *** | |
| Permissions on folder 'shared1': | read/write |
Configuration Nautilus and Samba
Trying to access this share with Nautilus, it would prompt for a username and password. After entering the credentials it would keep prompting.
To access this share with Nautilus type this in the address bar (CTRL+L), you can also use the IP address:
- smb://rt-n66u/shared1
Command-line mount:
gio mount smb://rt-n66u/rpicam
On the internet you will find talk about editing smb.conf to solve this kind of problem. It has to do with the authentication-method that is used against the Samba server. I tried several options and finally this one worked for me (but might not work for you):
sudo gedit /etc/samba/smb.conf
#... [global] #... security = user client use spnego = no #...
Note: while trying different options you do not have to restart anything.