Abstract: I have installed Gallery2 in a multi-user, quota enabled Debian Linux system. Gallery2 images and album files belong to web server's user instead to publisher's user.
I use to upload image files to the server using FTP, and then use the import files from the server to have them in the gallery.
Let's imagine first that the system's user "peter12" has uploaded 50 MB of images to a temporal folder. Those images belong to the user peter12, thus making remaining disk quota of user peter12 decrease in 50 MB. Then I use the plugin to import those files to the gallery. Once done, I remove the original files that had been uploaded via FTP.
The problem I have now is that files inside the data folder for the gallery no longer belong to the user "peter12", but to the user that runs the web server (in my case Apache, being the user "www-data"). So, peter12 is occupying 50 MB of the hard disk, but as files now belong to user www-data, his quota won't be affected. Of course, resized files and the rest of things also belong to www-data, so user www-data would run out of disk quota if many users did the same.
Is there any way to avoid that behaviour? The ideal thing would be that imported files, resizes, etc. belonged to peter12. Can this be done?
Gallery version: 2.2.2
PHP version: 5.2.0-8+etch7
Webserver: Apache 2.2.3-4+etch1
Database: 5.0.32
Operating system: Debian Etch 4.0