Questions tagged [tmp]
88 questions
207
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,346
- 4
- 16
- 12
50
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,725
- 1
- 11
- 17
22
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
- 761
- 1
- 5
- 9
18
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,301
- 5
- 19
- 34
14
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
- 279
- 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
- 501
- 1
- 5
- 13
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
- 17
- 32
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
6
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,497
- 17
- 57
- 72
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
- 877
- 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
4
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.
- 59
- 1
- 3
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
- 6
4
votes
1 answer
JBoss 5: $JBOSS_HOME/server/$INSTANCE/tmp cleanup
I've noticed since moving to jboss 5, tmp files for each instance are handled differently. In jboss 4, the entire directory was purged at each jboss restart. In 5, the applications are exploded to uuid-named folders, and are never cleaned up.
This…
user55427