ljvillanueva / pumilio

Pumilio: A Web-Based Management System for Ecological Recordings
12 stars 2 forks source link

permissions #24

Open aloboa opened 10 years ago

aloboa commented 10 years ago

To avoid permissions problems I have put the data to be imported in 2 directories /var/www/pumilio/misdatos /var/www/pumilio/misdatos_fromcsv and run sudo chown -R www-data:www-data /var/www/pumilio again

This is a bit inconvenient. Is not there a way of keeping the files to be imported in the original disk? After all, pumilio copies the files to a temporal folder. Agus

villanueval commented 10 years ago

Permissions is a tricky issue because it deals with risk. I would suggest creating a directory in the root of the system and giving www-data access.

sudo mkdir /pumilio
sudo chown www-data:www-data /pumilio
sudo chmod 777 /pumilio

Then, you can copy the files to this folder or mount a disk/network share/filesystem in this folder or a subfolder.

There are many ways of doing this, for example, this AskUbuntu question has a solution for allowing www-data to read a home folder.

aloboa commented 10 years ago

I'll be trying this solution later this week. Cannot afford having the files in the same partition as /var

Keep you informed.