[Bug 7448] New: Files created by koha-dump have different owners/permissions
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7448 Bug #: 7448 Summary: Files created by koha-dump have different owners/permissions Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 - low Component: Packaging AssignedTo: robin@catalyst.net.nz ReportedBy: magnus@enger.priv.no QAContact: ian.walls@bywatersolutions.com Here is a sample, for an instanace called "esme": -rw-r----- 1 root esme-koha 147K Jan 11 12:27 esme-2012-01-11.sql.gz -rw------- 1 root root 153K Jan 11 12:27 esme-2012-01-11.tar.gz The database file gets this treatment: chown "root:$name-koha" "$dbdump" chmod g+r "$dbdump" while the other file does not get anything similar. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7448 --- Comment #1 from Robin Sheat <robin@catalyst.net.nz> 2012-01-16 20:08:31 UTC --- It's semi-deliberate. Our Koha deployments have a feature that allows the superlibrarian to download the .sql.gz file[0], so it needs to be readable by the webserver. However, there is no need of this for the .tar.gz as it will be server config dependent, or derived data. So it's not made readable by the webserver. [0] One day I plan to upstream this, but it's fiddly as it depends on the setup of the server. I might do it as package-specific patches maybe. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7448 --- Comment #2 from Magnus Enger <magnus@enger.priv.no> 2012-01-16 20:31:25 UTC --- (In reply to comment #1) Semi-deliberate, eh? ;-) I'm not sure what makes sense if we try to generalize it, though....
[0] One day I plan to upstream this, but it's fiddly as it depends on the setup of the server. I might do it as package-specific patches maybe.
How about having it governed by a syspref that defaults to "off" but can be set to "on" by koha-create (or a wrapper script for koha-create)? -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7448 --- Comment #3 from Robin Sheat <robin@catalyst.net.nz> 2012-01-16 20:46:02 UTC --- Setting sysprefs with koha-create is tricky, as it may not be creating the DB. However, the package patches could alter the default SQL for sysprefs. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7448 --- Comment #4 from Robin Sheat <robin@catalyst.net.nz> 2012-02-01 00:34:38 UTC --- Actually, additional to this, pains must be taken to avoid it being accessible by the webserver, as there may be sensitive config and log related material in there. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7448 Robin Sheat <robin@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org