The tmp tag has no wiki summary.
4
votes
2answers
30 views
Could you explain this “chroot” /tmp directory creation?
In the following linked article they explain how to create a "chroot" /tmp directory. I'm a bit confused by what they did. Could someone explain what the following commands are doing?
Noexec and /tmp ...
1
vote
1answer
40 views
Accidentally garbled a bunch of file names in /tmp… ssh keys asking for passwords
I accidentally garbled the file names of the contents of my /tmp directory (don't ask) to the point where they're not recoverable.
Since doing so, I'm always asked for the password to my ssh keys ...
0
votes
0answers
45 views
Problems with permissions for /tmp
I executed command:
chmod 1777 /tmp
Now I get these results of executing the ls command from root:
ls -ld /tmp
drwxrwxrwt 4 root root 4096 Aug 9 05:42 /tmp
and from not-root user:
ls -ld /tmp
...
1
vote
2answers
56 views
Do Links to /tmp files get deleted?
I have a script that creates a temp directory using mktemp -d.
A folder generated in the temp directory is the output of the script that will be copied to another part of the machine.
I was ...
1
vote
1answer
63 views
How to install a .bin file that gives the error that it needs more space in /tmp?
Here is the error:
~]$ ./jdev_suite_121200_linux64.bin
0%....................................................................................................100%
Not enough disk space in dir ...
1
vote
1answer
39 views
Is there a command which creates a temporary file containing the arguments passed to it?
I can paste the contents of a file into a command using cat and backticks:
ls `cat filenames`
Is there a way to do the reverse - to turn a string into a (temporary) filename?
gcc -o cpuburn `uncat ...
8
votes
5answers
566 views
saving in /tmp is not really saving?
Open e.g. a mail attachment from Firefox (without previously saving it); this is a Libre Office document, you edit it, and then push save (not save as) and close both text editor and browser. Then the ...
0
votes
0answers
37 views
Problems reading files that have been written to the /tmp directory
I've recently started using Vagrant, running Debian for my dev environment. I love the way it just works... apart from 1 small thing...
My apache server is able to write files to the /tmp directory, ...
4
votes
1answer
1k views
When exactly does tmpwatch clear out files I place in /tmp?
CentOS 6.x
I'm confused on when exactly files I place in /tmp/ are deleted.
/etc/cron.daily/tmpwatch has the following:
#! /bin/sh
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x ...
2
votes
4answers
96 views
Wrapper command that runs program in temporary directory and deletes it after execution [duplicate]
I want to write a command that:
takes another command as its arguments
does a 'cd' to a temporary folder
executes the command passed in the arguments
removes the temporary folder afterwards
...
1
vote
2answers
129 views
How can I check to see if the /tmp directory on my CentOS 5.x system is mounted on tmpfs?
CentOS 5.x
My understanding is that the contents of /tmp/ in CentOS 5.x can/are automatically purged by the OS via one of two methods:
A daily cron task running tmpwatch
If /tmp/is mounted on a ...
1
vote
1answer
95 views
What is the tmp folder in /var?
I have a tmp folder in /var and it has the file channel.xml in it.
I don't know what this is and if it should be there and what permissions it should have because at the moment it is wide open.
Also ...
2
votes
1answer
250 views
Command(s) to install tempfile on CentOS 6.4
I'm looking to install the package for tempfile but am not finding it?
possibly use mktemp but I'm not sure if there is a difference in behaviour
besides a dot notation in the temp name?
$ tempfile # ...
10
votes
3answers
247 views
bash: Using read <<<“$VARIABLE” on a read-only root partition
Just by coincidence I had to use my ATA-ID-to-device-name script (found here: http://serverfault.com/questions/244944/linux-ata-errors-translating-to-a-device-name/426561#426561) on a read-only / ...
3
votes
1answer
96 views
Securing /tmp on OpenVZ [closed]
/tmp should be mounted as a separate filesystem with the noexec,nosuid options set
/var/tmp should either be symlinked to /tmp or mounted as a filesystem
/dev/shm is not mounted with the noexec,nosuid ...
1
vote
1answer
71 views
Small RAM-based /tmp
My VPS host's web interface for configuration gives me a dropdown box to set my /tmp.
The default is "16MB ram" and the alternative is "harddisk".
Is it possible that having only 16MB of /tmp ...
1
vote
1answer
791 views
Yum user temp files (/var/tmp/yum*) fills up with repo data
On my rhel6 system, non-sudo users can do yum check-update. Files are then placed in /var/tmp/yum[user]*/ . The repodata there gets quite large. Can I:
Configure the location?
Configure yum so it ...
0
votes
1answer
234 views
Different behavior of mktemp Ubuntu 12.02 / Mint 9 Isadora
In a bash script I use ImageMagick's convert command for doing some image processing.
I generate a temporal gif file for convert to write to.
I really need the file to have the .gif extension so ...
1
vote
0answers
149 views
tmp/krb5cc_[uid] is not getting purged regularly (kerberos credentials cache)
An ftp id wasn't able to authenticate itself using kerberos because it wasn't able to create /tmp/krb5cc_[uid]. This was caused because /tmp ran out of inode space, as there were innumerbale (don't ...
5
votes
1answer
381 views
What can go wrong if /var/tmp is on a temporary filesystem?
I have read that I should not mount /var/tmp as a temporary filesystem (e.g., as tmpfs), because files in /var/tmp must not be deleted on reboot. Is that correct?
Suppose I did mount /var/tmp as a ...
3
votes
2answers
676 views
Is it OK to store /var/tmp on a SSD? [duplicate]
I have read that you should not store /tmp on a SSD, because the frequent writes will shorten the lifetime of the SSD. But what about /var/tmp?
Is it reasonable for /var/tmp to be stored on a SSD? ...
16
votes
4answers
469 views
Which folder should I write to for my intermediate files, as a dev?
I'm starting to write a few bash scripts for my project and they need some intermediate files or variables to be written.
I want to know which folders can I be sure of having access to when someone ...
1
vote
0answers
58 views
SPSS temp directory space issue
I am trying to import a table data into SPSS Statistics Server, but due to space constraints in the temp directory location I am not able to facilitate the data import.
I need to either increase the ...
1
vote
2answers
95 views
Single process accessible temporary file
I want to create a file that is only accessible to the process that created it (and potentially its children), and that disappears when the process exits, ideally never persisting the file to disk. As ...
0
votes
1answer
230 views
how to automatically cleanup failed PHP uploads in /tmp?
How can I automatically cleanup failed uploads?
PHP is storing them in /tmp and all file names look like phpAbCDeF (basically php followed by 6 characters).
I know that I can use the command:
find ...
1
vote
3answers
3k views
how to delete temp and log files with terminal on vps?
I'm kinda pretty new to this but anyone know how to delete any temp and log files or these kind of files on vps with terminal? I'm runnin debian on the vps. I'm troubled since I can't locate those ...
20
votes
3answers
10k views
What are common rights for /tmp ? I unintentionnally set it all public recursively
I have abused sudo.
I have created a really really short life temporary directory that I wanted to share between some users for a few hours... and I named this directory /some/path/tmp
Unfortunately ...
5
votes
1answer
4k views
Overflow /tmp mounted when there is free space on /
I recently faced an "overflow" issue on /tmp. I don't have a separate /tmp partition, and there is 17% free in / – then why did I get an overflow tmp filesystem?
# /etc/fstab: static file ...
1
vote
4answers
2k views
When to mount /tmp (and other temporary directories)
When is the right time to mount /tmp (on Debian)? For /home I would not feel bad just to echo "/dev/foo /home type defaults 0 0" >>/etc/fstab - but can I be sure that /tmp is not used by any ...
1
vote
2answers
171 views
Where does the -i option in sed store the lines matching a regex?
I am trying to release space in my server's hd so I'm matching old dates in a log file with sed and it is decreasing but my root partition is now using 98% percent of it's space instead of 91% it was ...
27
votes
3answers
4k views
What is the difference between /tmp and /var/tmp?
On most FHS systems, there is a /tmp folder as well as a /var/tmp folder. What is the functional difference between the two?
0
votes
2answers
487 views
Writing to /tmp is failing - returning error 22
I'm getting this weird behaviour where writing to /tmp is failing.
Even try touch /tmp/foo as root fails with OS error code 22: Invalid argument.
The permissions are set to 1777/drwxrwxrwt.
5
votes
1answer
873 views
Can LVM snapshots be writable? (and used for temporary experiments)
It seems that usually it is talked about snapshots as read-only. (In a scenario where one creates a snapshot, then does some experiments with the main volume, and then restores the old state by ...
3
votes
1answer
1k views
Paritioning Scheme: Arch Linux server & laptop
What would be a good partitioning scheme for an Arch Linux installation, on a server and on a laptop?
My current basic scheme:
/ [root] ext4
/home ext4
swap
I know ...
13
votes
6answers
7k views
Is it safe to rm -rf /tmp/*?
This is something I used to do a lot on Windows, but after my recent fiasco I want to make sure. Is it safe to do
sudo rm -rf /tmp/*
?