Questions tagged [tmp]
The tmp tag has no summary.
173 questions
0votes
2answers
42views
How can I store some 6 Gb of files in a temp directory that will be automatically deleted within one day and not require a reboot
I would like to store some files in a temp directory that will be automatically deleted within one day and not require a reboot. The files will be about 6 Gigabytes. When should I use /tmp? Use /...
3votes
0answers
83views
Slow Linux file access to /tmp
time touch /tmp/test.dat real 0m1.03s user 0m0.00s sys 0m1.02s A full second of sys-mode time to create a file in /tmp. That can become unbearable for ksh scripts that open dozens of files ...
1vote
0answers
88views
Documentation for /tmp's default permissions
Is there any documentation for the default permissions of the /tmp folder on *nix, in particular Linux? (Or perhaps /tmp doesn't have specified default permissions?) Background: I'm trying to ensure ...
7votes
4answers
1kviews
Ways to keep files in /tmp?
I have a RHEL 8 workstation that hosts an app whose GUI is accessible through https on an unprivileged port. When the app is started, it creates a few socket files in /tmp with random names and the ....
0votes
1answer
40views
tmpreaper error: run time exceeded
How to overcome/force-fix the following problem: $ sudo /usr/sbin/tmpreaper 15d /tmp error: run time exceeded! This may be indicative of an attack to use tmpreaper to remove critical files; or the ...
0votes
1answer
79views
Do applications have priority over tmpfs for RAM usage (in the presence of swap)?
TLDR; If /tmp in mounted as tmpfs, in the presence of swap, is there any kind of priority when swapping ? Does tmpfs start to swap before applications ? FULL STORY I have a laptop with 32G of RAM (...
0votes
1answer
184views
Only since Debian 11: regular users can't write to world/group writable files under /tmp/ owned by other users, unless owner is root [duplicate]
Users: root userA - the normal owner of the file userB - the user that wants to write to the file The file: Let's say I have a basic text file: /tmp/file Ownership: chown userA:groupA /tmp/file ...
4votes
1answer
2kviews
Change /tmp (to increase available space) on live system?
I use Ubuntu 20.04, on a machine that has a limited system drive. I came across a build script that checks for available size in /tmp, and it refuses to run if it doesn't see 12 GB available, which I ...
0votes
1answer
2kviews
What does Linux do when the /tmp directory is flooded?
From my knowledge of the `/tmp` directory, it is cleared on reboot. I'm unsure what happens to the living host whenever the /tmp folder is flooded (put to the max storage capacity) - does Linux have ...
0votes
1answer
360views
Shred files in tmpfiles.d
After searching the tmpfiles.d, its seems like there is a limited number of option to erase the files/directories. I want to totally erase the temporary directories with a shred like command, is there ...
1vote
1answer
1kviews
Unable to delete root-owned file under /tmp
The file and folder are owned by root but I did sudo chmod ugo+rw on both, which I confirmed with ls -l. Still, I cannot remove the file as normal user. ❯ ls -ld /tmp /tmp/perm drwxrwxrwt 46 root root ...
0votes
1answer
399views
How to set up /var/tmp
This is a very stupid question but how can we set up /var/tmp? Is there a special way to do it or will just creating the directory suffice?
5votes
2answers
11kviews
tmp on tmpfs: fstab vs tmp.mount with systemd
To have /tmp on tmpfs, I know I can use an entry in /etc/fstab, but I do not understand the role of /etc/default/tmpfs mentioned sometimes, and in what case I need to create or modify it. Recently, I ...
1vote
1answer
427views
Processes in tmp folder
I have an application that has a process on the /tmp folder, and the process creates another file or folder. If the original process gets ended by the application, will all the files created by it get ...
0votes
1answer
267views
Fix Polyinstantiation of /tmp causing 'connect /tmp/.X11-unix/X0: No such file or directory'
In a multiseat desktop system with the /tmp directory polyinstantiated, the /tmp/.X11-unix/ directory and Xn instances are still created under root's /tmp not a user's. ssh -Ying into or out of the ...