Closed Bug 1233547 Opened 9 years ago Closed 9 years ago

Download fails on the single linux host with multiple users

Categories

(Firefox :: Untriaged, defect)

43 Branch
x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 1233434

People

(Reporter: hrvoje.habjanic, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20151210085006

Steps to reproduce:

On a single host (ubuntu 14.04.3) i have multiple users. Each of them uses remote desktop (x2go) to connect and browse. When first user starts browsing (firefox), and tries to download something, a special file /tmp/mozilla_mozillaUser0 is created.

When second (different) user try to download something (not the same thing!), clicking on download link does not produce "Save to" dialog, or saves file to designated location. Instead, new entry is added to download manager, with status "failed".


Actual results:

On first user download, "save to" dialog is presented, and user is able to save file.

On second user download, there is no "save to" dialog and file is not saved. Instead, file is logged in download manager with "failed" status.

Both users have selected to show "save to" dialog!


Expected results:

Second user should be able to save the file.
Severity: normal → critical
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Hi.

It would seem that /tmp/mozilla_mozillaUser0 directory is to blame in here. It is created when first download is attempted, and it is not deleted or moved away. Also, it have 0700 permissions, so other users can not access it.

Removing this directory, enables other users to download normally, BUT, again, because is recreated, next user again have the same problem. Changing permissions to 0755 makes this work next user - because new directory is created - "mozilla_mozillaUser1". But, again, with 0700 permissions, which make jet another next user having the same problem.

What is interesting in this whole mess, is that assigning TMP environment variable makes this directory not showing up, and thus, fixing this bug.

Regards,

H.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.