The tag has no usage guidance.

learn more… | top users | synonyms

42
votes
5answers
49k views

When does /tmp get cleared?

I'm taking to putting various files in /tmp, and I wondered what the rules on deleting them are? I'm imagining it's different for different distributions, and I'm particularly interested in Ubuntu ...
29
votes
5answers
15k views

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 ...
6
votes
3answers
2k views

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 ...
4
votes
2answers
2k views

Why are files being removed from /tmp?

I use centOS5, but these files of /tmp is deleted automatically when time passes. What kind of structure will this kill him in? In addition, How to stop this?
3
votes
5answers
8k views

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 ...
3
votes
3answers
211 views

Can you put user temp files in /tmp?

Can you put files in /tmp? A friend of mine was telling me never to do that, it could bring down a machine. Is this true?
3
votes
1answer
3k views

Does Ubuntu Server have any sort of cron job to automatically clear /tmp?

I know it clears out /tmp on reboots, but I haven't been able to find any sort of cron job on my server that clears /tmp. I recently set up a script that writes lots of files to /tmp and my server ...
3
votes
1answer
2k views

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 ...
3
votes
1answer
676 views

Increase TMP size Centos 6.5 whm/cpanel

I'd like to increase it from 2G to 10G Using CENTOS 6.5 WHM 11.40.1 (build 11) I have tried: #vi /scripts/securetmp and looked for a line like “my $tmpdsksize” its not there. But this is what is ...
2
votes
1answer
3k views

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 ...
2
votes
2answers
526 views

Linux tmp-like dir in home folder?

I'd like to make a folder in my GNU/Linux home directory that behaves somewhat like TMPDIR (usually /tmp or /var/tmp); that is, a folder that deletes its contents on reboot or after they've started ...
2
votes
1answer
417 views

Is it all right to just delete /tmp/* and all the apache logs files (access.log, error.log)?

They are just taking too much disk space, is it safe to delete them? Is there anything I have to take special care of when I set up a crontab job to do the deletion routinely? Thanks!
2
votes
2answers
3k views

/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 ...
2
votes
5answers
11k views

How do I delete everything in the /tmp/ folder?

I do "sudo rm *" and it does not remove everything. (I probably have lots of objects in there which I don't need.) I'm not asking whether it's ok to remove everything in tmp - i'm asking how to do it ...
2
votes
1answer
252 views

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 ...
2
votes
1answer
2k views

What is the most efficient way to handle /tmp and disk quotas on Linux

I'm running a VPS with a webserver (Apache+PHP), a database (MySQL) and smtp server (Exim). OS: Debian Lenny. RAM: 512MB. Using (quota](http://packages.debian.org/lenny/quota). At the moment, I've ...
1
vote
5answers
20k views

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 ...
1
vote
5answers
612 views

Scratch files in /tmp getting mysteriously deleted

I have certain files in a /tmp subdirectory that a script I wrote uses for scratch. The opens and closes these file perfectly fine for a few hours. Then, out of nowhere, the files are no longer found. ...
1
vote
2answers
145 views

Longevity of entries in /tmp on a server

On a server that's up 24/7/365: where and how are the cleanup of /tmp (and /var/tmp) defined / controlled / configured?
1
vote
4answers
1k views

/var/tmp and file lifetime

I've got a cronjob that runs every minute and checks existence of a certain file. If there's no such file, job silently ends. If there is a file, then another script is started. That script removes ...
1
vote
4answers
781 views

Cleanup of /tmp

What mechanism controls how often/when the /tmp directory is cleaned up. If there is such built-in mechanism at all or do I need to resort to a custom cron? I'd appreciate either a specific ...
1
vote
5answers
2k views

fopen() failing to open a file on /tmp share

I have a C application that occasionally fails to open a file which is stored on a /tmp share. Here is the relevant chunk of code: // open file and start parsing notStdin = strcmp(inFile, "-"); ...
1
vote
2answers
3k views

delete all folders with tmp in name using batch file

Have tried to google this, but I always seem to get results relating to .tmp files, which isnt really any use. I have only a basic understanding of batch files, but I think I need something like ...
1
vote
2answers
4k views

Tomcat: deleting content of “logs” and “tmp” directories

I have noticed that "logs" and "tmp" content take 36GB and 21GB respectively. I need to free up some disk space and currently wondering is it vise to clean them. Thanks!
1
vote
2answers
388 views

Possible causes of PHP /tmp device full error

I am getting the following error on the odd occasion on our web server: Warning: session_start(): open(/tmp/sess_7ifl201pvdd91rr6tr4015n5k4, O_RDWR) failed: No space left on device (28) in ...
1
vote
1answer
415 views

Suspicious Linux binary file in /tmp/ - Munin?

I have a CENTOS 6.6 x86_64 server running ConfigServer Firewall (installed by us) and Munin (installed by the datacentre). CSF has recently (and for no apparent reason) started sending us warnings, ...
1
vote
1answer
56 views

Temporary file security threat? [duplicate]

We use CentOS. We've been hacked and trying to figure out why. Looking at the /tmp folder I'm wondering if these are security threats: -rw-rw---- 1 mysql mysql 11665408 Apr 3 18:59 ...
1
vote
1answer
348 views

Can't create/write to file '/mnt/temp/something' (Errcode: 13)

I changed the tmp directory of the mysql configuration to a mounted disk and on service mysql restart I get following error: Can't create/write to file '/mnt/temp/something' (Errcode: 13) To my ...
1
vote
1answer
425 views

/var/tmp size increasing. MYD file eating memory

i don't know much about linux file's system. there is centos installed on my machine. suddenly my web stopped working. sql_2031_0.MYD file in /var/tmp/ getting large when something browses in website. ...
1
vote
1answer
63 views

Will changes to periodic.conf file be picked-up by the system automatically?

I have made some changes to my /etc/defaults/periodic.conf file to change how it cleans the /tmp dir. Do I need to do anything else such as log-out or reboot to get the system (Mac OS 10.8.4) to see ...
1
vote
1answer
3k views

How much space is in a Solaris /tmp filesystem?

On Solaris, the /tmp filesystem is a filesystem of type "tmpfs". It's implemented in the kernel by allocated space from the virtual memory pool. That means allocation interacts with the available RAM ...
1
vote
1answer
557 views

tmpwatch not deleting folders and mp3 files in /tmp

I have a process which moves files from our EC2 server to s3, we're not sure why but it stores them in /tmp whilst moving them, but for some reason it also leaves them there once the process has ...
1
vote
1answer
721 views

Compiling passenger-install-nginx-module; “C compiler gcc is not found”

I am in the middle of a process of installing Redmine served with passenger and nginx with this tutorial. With the passenger-install-nginx-module, it works fine and during compiling it outputs an ...
0
votes
3answers
96 views

/tmp flooded with “.myapp” files

On my new server (dedicated, CentOs5), 2 or 3 .myapp files (like "51b9dc4cc246f.myapp", ~500 Mo) is created every minute under /tmp, fulling my harddisk at an alarming speed. There is nothing in ...
0
votes
2answers
11k views

Increasing the size available to, or changing location of, /tmp

I am currently in charge of a server running Red Hat and a bioinformatics webapp that deals with huge files, some of which are over 100GB when uncompressed. The act of decompressing these files is ...
0
votes
2answers
127 views

How to backup your MySQL database when /tmp is read only?

I have an Ubuntu server 12.04 with a corrupted ext4 file system on my /tmp partition : $ dmesg | tail [25300713.878456] end_request: I/O error, dev vda, sector 2019854 [25300713.882430] Aborting ...
0
votes
2answers
2k views

How long do uploaded files stay in the tmp folder in Linux Ubuntu?

I am building a web application where my users will be able to upload files. After the files are uploaded I need to send the files to two other servers, and after they will be deleted from the server ...
0
votes
2answers
652 views

removed files from /tmp/ directory - can't login anymore

I'm a system integrator(evidently noob), and today i've made my first scan with rkhunter, a tool that look into the system for check the presence of rootkits. After that scan i -foolishly- decided to ...
0
votes
1answer
500 views

/tmp always gets full even after resize

I have a cPanel Server with 4GB of Ram and 4GB of /tmp space. I always get this error: Will this cause slow performance? and can I delete everything? Drive Critical: /tmp (/var/tmp) is 95% full ...
0
votes
1answer
1k views

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 ...
0
votes
1answer
859 views

PHP fails to start sessions - disk corrupted?

In my Linux server, I can't login to my PHP application having an issue related to PHP sessions: PHP Error Logs: [Sat May 21 21:27:50 2011] [error] [client ] PHP Warning: Unknown: ...
0
votes
1answer
59 views

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 ...
0
votes
1answer
81 views

Debian 8 + PHP: /tmp/ Permission denied

I had a website running fine on Debian 7 + PHP 5.6, and recently decided to upgrade my Debian installation to Debian 8. Everything went fine, except for a small thing. While running the same code, ...
0
votes
1answer
20 views

deletion of tmp directory content on RHEL

we have installed Web logic server 10.3.6 in RHEL 5.8.There also a "tmp" folder inside "domains/servers/tmp" folder..this is the path of tmp folder in my case.Now My query is "Is it Mandatory to ...
0
votes
1answer
116 views

Re-ocurring issue with keys on temp tables

We run a large forum with lots of reads and writes, particularly to the posts and topics tables which are both innodb. Last week I started doing 12 hourly backups with innobackupex because mysqldump ...
0
votes
1answer
354 views

Email queue won't send - No disc space left (running Centos 6.3)

I hope anyone can help me out with the following issue. I'm no longer receiving emails because they are getting stuck in the email queue. I've tried the following: System reboot (even between the ...
0
votes
3answers
226 views

Purge tmp directory per user

I've created on my fresh server a directory structure like this: /home/$username/$domain/ (for example: /home/domaincom/domain.com/) - public_html - logs - conf - tmp Everything works well, but ...
0
votes
1answer
84 views

Ephemeral Amazon disc mounted in /tmp

I would like to know what do you think about mounting the ephemeral disc in /tmp when using Ubuntu in AWS.
0
votes
1answer
111 views

using /tmp partition instead tmp folder under root partition

I’m very new on using Linux (Debian) and have following question. I installed debian and during the process also created separate partition for /tmp. How can I now make sure that server programs use ...
0
votes
1answer
378 views

Can I delete CGI*****-* files in /tmp dir

We have a bunch of different applications running on a web server and some of them started falling over; Quickly checking disk space we realised the tmp folder on a seperate partition had become full ...