Trying to set up qBittorrent on POP_OS! to have it’s complete file directory as the SMB share on truenas scale. (should be simple, right?)
Well, when you use the built-in Connect To Server in POP_OS! it mounts the drive with the path as:
/run/user/1000/gvfs/smb-share:server=truenas,share=[SMBFOLDER]/
This gives you write access from the POP_OS! filebrowser GUI (ie when correctly putting in your TrueNAS local user with write access when adding the SMB directory).
BUT qBittorrent cannot accept this as a filepath to write to, it crashes if you try to use that above as a filepath.
So off to the forums, and the recommended approach is to use cifs mount, All fine with this.
(Credit to very helpful resource for clear instructions on this.)
sudo mount -t cifs -o user=[SMB_USERNAME],vers=3.0,credentials= /root/.smbcredentials //truenas.local/[SMBFOLDER] /media/[LOCALMOUNT]
Sadly, however, when you create the SMB mount in this way it seems that POP_OS sees the owner as root, and POP_OS doesn’t allow you write access.
Tried sudo chmod to get write access for the mounted read-only directory, but that doesn’t work either.
Any suggestions?