Installation

Permissions not granted for uploading files

Permissions not granted for uploading files

by Tim Alderson -
Number of replies: 2

WW 2.17, Ubuntu 20.04. 

Files cannot be uploaded using the file manager after upgrading to 2.17. 

failed to write upload info file /opt/webwork/webwork2/DATA/uploads/1692751a-70f4-490d-9be5-4c1edf724dee.info:Permission denied at /opt/webwork/webwork2/lib/WeBWorK/Upload.pm 

(even as admin in the admin course) How would I go about setting the permissions on the server appropriately?   [step-by-step would be truly helpful]

In reply to Tim Alderson

Re: Permissions not granted for uploading files

by Glenn Rice -
Make sure that the directories /opt/webwork/webwork2/DATA and /opt/webwork/webwork2/uploads are both writable for the server user (that is www-data on Ubuntu). You can make this happen with:
sudo chown -R your_admin_user:www-data /opt/webwork/webwork2/DATA
sudo chmod -R g+w /opt/webwork/webwork2/DATA