Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-03-2020, 03:41 PM   #1
Smith_oo4
Junior Member
Smith_oo4 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2020
Device: none
Set UNIX Permissions of files in library

Is there a way to set the UNIX file permissions on files and directories Calibre creates in a library when a new book is added? That is something like a chmod mask?

I like to set the setgid bit on directories so any new file or directories inherits the group of the parent directory. This way I can create a common group "media" and add any user that need access to the file or directories (e.g. myself, LazyLibrarian, etc.) to that group. To do this directorys need to be 2775 and files 0664.

Thank you,
Morgan Smith
Smith_oo4 is offline   Reply With Quote
Old 04-03-2020, 05:42 PM   #2
ratinox
Guru
ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.
 
Posts: 763
Karma: 10000000
Join Date: Oct 2016
Location: Somewhere in Time
Device: Forma, iPad Mini
What you want is a default ACL on the top-level directory. Assuming you have a group called "calibre" and a directory called "Calibre Library" you need to set the default ACL to permit access:

Code:
setfacl -d -m group:calibre:rwx "Calibre Library"
This only works for new files/directories created under Calibre Library so you also need to set everything in it once:

Code:
setfacl -R -m group:calibre:rwx "Calibre Library"
ratinox is offline   Reply With Quote
Advert
Old 04-04-2020, 08:18 PM   #3
Smith_oo4
Junior Member
Smith_oo4 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2020
Device: none
Cool, I will give that a try
Smith_oo4 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fails on set library gbm Calibre Companion 4 10-10-2016 11:05 PM
IQ IQ 701 - files in system folder overwritten - shell has no executable permissions :( josh9383 PocketBook 4 08-27-2011 11:45 AM
can i just set the files on an Pro Duo crazyheinz Sony Reader 6 08-13-2009 10:39 AM
Almost able to set up library, but .. AlexBell Kindle Formats 6 08-01-2008 05:56 PM
eBook Library Error: Permissions. Icarusbop Sony Reader 1 01-02-2008 09:33 AM


All times are GMT -4. The time now is 09:23 PM.


MobileRead.com is a privately owned, operated and funded community.