[sword-devel] Diatheke...

Chris Little sword-devel@crosswire.org
Mon, 19 May 2003 17:47:09 -0700 (MST)


On Fri, 16 May 2003, Joby wrote:

> I'm sure that this has a REALLY simple answer but... on my linux box
> here, I plan on just using diatheke a bit to look things up quickly...
> but it doesn't see any modules unless I execute it as root. I've glanced
> around for obvious file permission issues, but haven't found any... Any
> guesses?

In order to work, diatheke needs two things:
It needs to be able to find the module file (best handled with sword.conf
in /etc).
And it needs to be able to read the files as the executing user (which 
means all the files in mods.d & modules should be w+r and all directories 
in mods.d & modules should be w+x, as well as their parents.

Obviously the diatheke executable and the shared library (if diatheke is 
dynamically linked) also need to be w+rx.


It's pretty much just a Linux file permissions issue, as you suspected, 
and others may be better for answering Linuxy issues since I don't really 
use it. (It came to my attention last Monday, from a VERY well respected 
industry source and former Linux distributor, that "As a consequence of 
Linux's unrestricted authoring process, it is not surprising that Linux 
distributors do not warrant the legal integrity of the Linux code provided 
to customers. Therefore legal liability that may arise from the Linux 
development process may also rest with the end user."  So naturally I try 
not to have anything to do with an OS for which I might be sued for using. 
;)

--Chris