Share rclone via SMB - ubuntu

Recently, I installed rclone 1.52.3 on an Ubuntu 18 machine with all the latest updates applied. I am able to mount a drive from DropBox without any issue. Ideally, I'd like to be able to share this out via SMB to other clients so people can read and write to it as a network share. Right clicking the mount or even a folder inside of it and sharing it out appears to work from the GUI side however when connecting to it from another machine all the machines tell me that the server does no support the SMB protocol or that a login cannot be attempted. Sharing out a local folder works without any issue.

Is this a known limitation. Is there a way around it?

hello and welcome to the forum,

samba can share a rclone mount via smb.
i do it on my raspberry pi4.

when you posted, you were asked for information, you need to supply it, so we can help you.

Yes. I apologize.

The rclone config contents with secrets removed.

[Drop]
type = dropbox
app_key =
app_secret =
token = {"access_token":"$

A log from the command with the -vv flag

rclone mount Drop: ~/Drop -vv
2020/08/11 12:11:02 DEBUG : rclone: Version "v1.52.3" starting with parameters ["rclone" "mount" "Drop:" "/home/ianliuzzi-fedun/Drop" "-vv"]
2020/08/11 12:11:02 DEBUG : Using config file from "/home/ianliuzzi-fedun/.config/rclone/rclone.conf"
2020/08/11 12:11:02 Fatal error: Directory is not empty: /home/ianliuzzi-fedun/Drop If you want to mount it anyway use: --allow-non-empty option```



I see on that log that it gives that error.  Does that necessarily pose a problem?

it is best that the mount folder is empty.

if for some reason you want to mount to a folder with files in it, then you need to add the flag.

I deleted and re-created the folder and then re-mounted. Here is the current log now that that is out of the way:


2020/08/11 12:22:38 DEBUG : rclone: Version "v1.52.3" starting with parameters ["rclone" "mount" "Drop:" "/home/ianliuzzi-fedun/Drop" "-vv"]
2020/08/11 12:22:38 DEBUG : Using config file from "/home/ianliuzzi-fedun/.config/rclone/rclone.conf"
2020/08/11 12:22:38 DEBUG : Dropbox root '': Mounting on "/home/ianliuzzi-fedun/Drop"
2020/08/11 12:22:38 INFO  : Dropbox root '': poll-interval is not supported by this remote
2020/08/11 12:22:38 DEBUG : Adding path "vfs/forget" to remote control registry
2020/08/11 12:22:38 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/08/11 12:22:38 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/08/11 12:22:38 DEBUG : : Root: 
2020/08/11 12:22:38 DEBUG : : >Root: node=/, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Lookup: name=".Trash"
2020/08/11 12:22:38 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Lookup: name=".xdg-volume-info"
2020/08/11 12:22:38 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/08/11 12:22:38 DEBUG : /: Lookup: name="autorun.inf"
2020/08/11 12:22:38 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Lookup: name=".Trash-1000"
2020/08/11 12:22:38 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Attr: 
2020/08/11 12:22:38 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2020/08/11 12:22:38 DEBUG : /: ReadDirAll: 
2020/08/11 12:22:38 DEBUG : /: >ReadDirAll: item=16, err=<nil>
2020/08/11 12:22:38 DEBUG : /: Lookup: name="autorun.inf"
2020/08/11 12:22:38 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory


good,
also, you should add this flag

--allow-other                            Allow access to other users

so what is the problem now?

Fantastic. Adding --allow-other helped. It prompted me to uncomment something in fuse which I did and then I was golden.

Can you please point me in the proper direction to ensure this mounts on reboot please?

good,

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.