View Single Post
Old 10-15-2017, 08:53 PM   #5
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by chrisbennington View Post
After a recent update (not sure if it was Calibre update or Ubuntu), I can now now longer run calibre without using sudo.

Any guidance on how to fix this?
Open a terminal window. cd to the top level directory of your calibre library. Make sure that you are in the right directory (there should be a metadata.db file in this directory, as well as subdirectories for all your authors).

To fix the permissions on you library, do this:
Code:
> echo meta*
# make sure that printed "metadata.db"; if it didn't, then stop and don't execute the following
> sudo chown -R $USER .
> sudo chmod -R u+rw .
> find . -t d -print0 |xargs -0 sudo chmod u+x
That should fix the permissions on your library at least enough for calibre to work, though you may want to set the group/other permissions differently depending on what access you want.

If it's still borked, then it's likely the config files that have a permissions problem; go to the ~/.config/calibre directory, double-check that you are actually in that directory, and run the same 3 last commands to fix the permissions there.
sjfan is offline   Reply With Quote