Questions tagged [tmp]
90 questions
226
votes
8 answers
When does /tmp get cleared?
I'm taking to putting various files in /tmp, and I wondered about the rules on deleting them?
I'm imagining it's different for different distributions, and I'm particularly interested in Ubuntu and Fedora desktop versions.
But a nice general way of…

John Lawrence Aspden
- 2,536
- 4
- 17
- 12
52
votes
6 answers
How useful is mounting /tmp noexec?
Many people (including the Securing Debian Manual) recommend mounting /tmp with the noexec,nodev,nosuid set of options. This is generally presented as one element of a 'defense-in-depth' strategy, by preventing the escalation of an attack that lets…

Phil Miller
- 1,755
- 1
- 12
- 17
23
votes
1 answer
php script can't access /tmp folder
I have no open_basedir, php can access /etc /usr /proc /home etc… but not /tmp.
tmpfs is mount on /tmp (/tmp type tmpfs (rw))
That's also the reason I want to use the /tmp folder.
My files are owned by http (user for nginx and php) and readable by…

eephyne
- 781
- 1
- 5
- 9
19
votes
8 answers
How to change default /tmp to /home/user/tmp
Is there an environment variable to set the temporary directory on debian based systems?
I have a java applet that uses that environement variable and it's getting confused when launching two instances of the same applet.

Disco
- 1,421
- 5
- 20
- 34
15
votes
2 answers
/tmp used 100% where is files?
On Centos 6.3 server I noticed that /tmp has no longer free space to store files.
[root@]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg0-lv_root
99G 11G 84G 12% /
tmpfs 16G…

Ken Tang
- 289
- 1
- 2
- 8
9
votes
3 answers
Using tmpfs + a very large swap partition for /tmp instead of a regular filesystem?
I have Linux server and I have a spare 500GB disk partition. I wanted to format it and use it for /tmp. The server occasionally runs some large data processing tasks so it can happen that /tmp will hold GBs of temporary data.
Then I got an idea that…

Petr
- 581
- 1
- 5
- 16
8
votes
1 answer
Error: No space left on device when starting/stopping services only
I know there are multiple questions like this already, but none of their answers applies to my problem.
So I tried to upgrade from Debian 7.7 to Debian 8.1. Every works fine, but certain operations reports Error: No space left on device.
df…

OptimusCrime
- 385
- 1
- 3
- 10
8
votes
3 answers
No space left on device error, but df reports as more space available
My PHP sessions on my Debian webserver using Apache2 with mod_php seem to be failing randomly, saying that there’s no space to write them:
sudo tail -60 /var/log/apache2/error.log
[Fri Jan 30 15:55:35 2015] [error] [client xxx.xxx.xxx.xxx] PHP…

Kzqai
- 1,278
- 4
- 18
- 32
7
votes
1 answer
Boot stuck at "A start job is running for Create Volatile Files and Directories"
I think something generated millions of files or folders in my /tmp on Ubuntu 18.04, as I'm unable to run ls /tmp or even rm -rf /tmp/*. So I tried rebooting, but now my machine's stuck at the step:
A start job is running for Create Volatile Files…

Cerin
- 3,600
- 19
- 61
- 79
7
votes
5 answers
Resize debian /tmp partition
My /tmp partition keeps running out of space on a very large SQL query. How can I make the /tmp partition bigger?
Thanks
Tom
EDIT:
Here are the outputs from the requested commands
blkid
/dev/sda1: UUID="e8604436-53ea-4a05-9459-6c498cf19a1a"…
Tom
5
votes
1 answer
Accidentally deleted /tmp/systemd-private-015eb2a30-apache2.service-9h6i
I accidentally deleted systemd-private-015eb2e9f67b4eef862c68e99fe0ba30-apache2.service-9h6i08 from my /tmp folder:
sudo rm -R /tmp/systemd-private-015eb2e9f67b4eef862c68e99fe0ba30-apache2.service-9h6i08
and didn't mean for it not to disappear…

mah. nah.
- 69
- 1
- 3
5
votes
1 answer
Are directories with mode `drwxrwxrwt` safe in /tmp on a *nix system?
drwxrwxrwt 2 root root 4096 Aug 20 2015 .font-unix
drwxrwxrwt 2 root root 4096 Aug 20 2015 .ICE-unix
-rw------- 1 root root 0 Aug 20 2015 ipt.err
-rw------- 1 root root 90 Aug 20 2015 ipt.out
drwxr-xr-x …

John
- 887
- 4
- 15
- 25
5
votes
1 answer
sudo does not preserve TMPDIR
The sudo manpage tells me, that I can preserve the environment by passing the -E option, which does not work in the case of $TMPDIR:
> env | grep TMPDIR
TMPDIR=/localdata/tmp
> sudo env | grep TMPDIR
[no output]
> sudo -E env | grep TMPDIR
[no…

Mirko Vogel
- 53
- 3
5
votes
1 answer
How exactly to use systemd private temporary directory feature?
Systemd has a nice feature that is private temporary directory (/tmp). But it is not clear from the dense manual what are the correct ways to use it and implementation gotchas (get the feeling the manual is more a spec for devs and…

gcb
- 344
- 1
- 4
- 18
4
votes
3 answers
git reports "No space left on device", but df -h says there is is 2.5G available
I have an EC2 node running Ubuntu 14.04. On a deploy this morning, I received the following error message from git fetch:
error: unable to create temporary file: No space left on device
I logged into the server and df -h indicates I have plenty of…

Rjak
- 143
- 1
- 1
- 7