Project

General

Profile

Bug #1075

Permission denied - /tmp/amahi-download-cache/*

Added by cpg almost 7 years ago.

Status:
New
Priority:
Medium
Assignee:
-
Category:
App Install
Target version:
Start date:
08/08/2013
Due date:
% Done:

0%


Description

This issue (which first was reported in #946) has arisen again in Amahi 7. I reviewed the code and i do not see how this could happen, however,
Example:

#<Errno::EACCES: Permission denied - /tmp/amahi-download-cache/9142736ca853a31c463f9fe9dc15a54793363b95>

I want to catch this one so bad.

It's possible that doing amahi-download in an elevated script create this directory with wrong permissions (root:root) instead of proper permissions (apache:users).

We may have to change the location of this directory, e.g. /var/hda/download-cache/ because it appears /tmp is being cleared quickly these days, partially defeating the point of the cache.

Also available in: Atom