stenglein-lab/TaxAssessor

Permissions issue writing temp files

Opened this issue · 1 comments

I started taxassessor via the launch_server.py script run as user mdstengl

then I tried to upload a file and got this error:

Error Uploading File: Nextera_Soil1_spade_contigs.fa.bn_nt
[Errno 13] Permission denied: u'/home/jallison/TaxAssessor/website/TaxPy/inputFile_management/../../uploads/mark@mark.com/Nextera_Soil1_spade_contigs.fa.bn_nt_tree.json'

the issue is that the directory /home/jallison/TaxAssessor/website/TaxPy/inputFile_management/../../uploads/mark@mark.com is owned by user jallison and not writeable by other users...

I created a temporary fix by running this command:
mdstengl@stengleinlab101:/home/jallison/TaxAssessor/website/uploads$ sudo chmod g+w *

That wasn't enough, so ran:

mdstengl@stengleinlab101:/home/jallison/TaxAssessor/website/uploads$ sudo chmod o+w *

But this doesn't get around the issue for future installs necessarily...

I just thought of how to fix this. I'll take a stab at it soon.