View Single Post
Old 06-01-2021, 02:55 AM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ceridwen View Post
Some versions ago, the way Gnome/Linux loads hotplugged USB devices changed so the drives are owned by root when they're mounted automatically. The problem with this is that I can't copy files to my Kobo without doing so as root. As I typically use Calibre to do this, I have to run Calibre as root so it has the ability to write to the Kobo (mounted as a USB device) to copy my many side-loaded books. (I confirmed that this works with Calibre when it's running as root, just to be sure this is the problem.) I could probably hard-code the UUID in fstab/ or some such as a dirty hack to fix it, but that's not portable (I'd have to recreate it in every copy of fstab across multiple devices) and would be annoying to set up in the first place.

Is there any way to make a hotplugged Kobo load as my user (or some specific user) or at least with the files have r/w global permissions so that I could copy files while running Calibre as my user?

I'm running Ubuntu 20.04 with Gnome 3.30+2.
I don't think this is something the device has control of. All it is doing is presenting itself as a USB MSD and letting the computer decide what to do. If a Linux box does the mount as owned by root, then that need to be sorted out on that box. I don't see a problem on my work Ubuntu 20.04 machine. I don't remember having to do anything when I first set it up to use calibre and my Kobo devices.
davidfor is offline   Reply With Quote