Score:0

Alternative location to store tmp files on linux

in flag

So I have a python script that I compile with pyinstaller to a single file. at the time of running, by default, the script will unbundle the modules in /tmp/ also you can change the default TMPDIR at the time of compilation.

PROBLEM: As you might know, this is a common security practice that you mount /tmp/ or /var/tmp/ as a noexec. the problem is that my script can't execute the modules from /tmp/ or /var/tmp/ on some of my client's servers.

QUESTION: I want to change my scripts TMPDIR to somewhere else to prevent this problem, where is the standard location for something like this?

A.B avatar
cl flag
A.B
See also: https://stackoverflow.com/questions/18841334/using-an-alternate-tmp-location-with-pyinstaller/53418707#53418707
djdomi avatar
za flag
why not using the source folders? since the tmpdir can be verified for can execute oflr not,i would then just use a small if else and create a folder dll,do the job and remove it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.