![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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" Code:
setfacl -R -m group:calibre:rwx "Calibre Library" |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2020
Device: none
|
Cool, I will give that a try
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |