<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 24, 2013 at 12:31 PM, Mathieu Saby <span dir="ltr"><<a href="mailto:mathieu.saby@univ-rennes2.fr" target="_blank">mathieu.saby@univ-rennes2.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1- how to put the file in /etc/ of installation directory (in discussion)<br>
2- how to allow the perl script (from staff interface) to write or rewrite the yaml configuration file if a librarian decides to change some settings.<br>
<br>
If I do nothing special, YAML::DumpFile fails to (re)write the file, because -  I suppose - the apache user does not have rights to access the server.<br>
So, for the moment, the only way I found to make my config file editable is "chmod 666".<br>
But  I suppose it is not very safe...<br></blockquote></div><div class="gmail_extra"><br></div>It is indeed not very safe -- this is actually one of the (implicit) reasons why I was suggesting that the configuration be stored in the database.  If nothing else, the output of YAML::DumpFile could be stored in a syspref; while this would likely not be best possible design, it is much  better IMO to do that than open a potential security hole by having Koha write to the filesystem -- /especialy/ a configuration file.</div>
<div class="gmail_extra"><br>Regards,</div><div class="gmail_extra"><br>Galen<br>-- <br><div dir="ltr"><div>Galen Charlton</div><div>Manager of Implementation</div><div>Equinox Software, Inc. / The Open Source Experts</div>
<div>email:  <a href="mailto:gmc@esilibrary.com" target="_blank">gmc@esilibrary.com</a></div><div>direct: +1 770-709-5581</div><div>cell:   +1 404-984-4366</div><div>skype:  gmcharlt</div><div>web:    <a href="http://www.esilibrary.com/" target="_blank">http://www.esilibrary.com/</a></div>
<div>Supporting Koha and Evergreen: <a href="http://koha-community.org" target="_blank">http://koha-community.org</a> & <a href="http://evergreen-ils.org" target="_blank">http://evergreen-ils.org</a></div></div>
</div></div>