Forum OpenACS Q&A: I guess I need help setting up FileStorage

Dear OpenACS users, I liked to setup a download area from which (after registration) people can download things. I was thinking that FileStorage is the "right" tool for that job.

I installed that package and created an application to test it
Now I go into that application, and I got a few choices, among them is "Add File", I tried that. I got into another window
with the header "Upload New File", that seems to be fine for me
I choose one file to upload, give it a title and click "Submit" and I got this error backtrace:
error copying "/tmp/fileA0NFWL" to "/opt/lib/oacs/content-repository-content-files/18/51/1852": permission denied
    while executing
"file copy -force -- $client_filename [cr_fs_path]$content_file"
    (procedure "cr_create_content_file" line 8)
    invoked from within

unfortunatly the permissons of the last parts looks wrong
ls -ld 51
drw-r--r--  2 oacs web 48 Sep 28 13:50 51/

I checked what I can change in the Permissions, but I have no idea what I'm supposed to do. Can anyone give me a hand on this?

Isn't FileStorate what I should use?


Posted by Malte Sussdorff on
who is the user that runs your service? If it is not oacs, then you do have a problem. But you can always use "chown -R yourserviceuser.web content-repository-content-files".
Posted by Friedrich Dominicus on
Thanks for taking the time to answer. The user is oacs. I removed all the stuff and rebuild a new one and this time the permissions look right
drwxrwxr-x  8 oacs web 192 Sep 28 14:55 18/
drwxr-xr-x  4 oacs web  96 Sep 28 14:59 19/

So I can't tell any longer why the permissions were messed on the first run.