Skip to main content

Questions tagged [tmp]

1 vote
2 answers
133 views

No space left on device while building Python-3.13.3

Am installing Python-3.13.3 on an Ubuntu 22.04 LTS system. make reported ../../../src/Python/python-3.13.3/Parser/parser.c:42298:1: fatal error: error writing to /tmp/ccC4u7pE.s: No space left ...
Heime's user avatar
  • 45
0 votes
2 answers
107 views

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 /...
I_Can_Fixit's user avatar
3 votes
0 answers
116 views

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 ...
Paul W's user avatar
  • 183
1 vote
0 answers
163 views

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 ...
burija's user avatar
  • 11
7 votes
4 answers
2k views

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 ....
Fravadona's user avatar
  • 1,591
0 votes
1 answer
73 views

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 ...
xpt's user avatar
  • 1,904
0 votes
1 answer
105 views

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 (...
ChennyStar's user avatar
  • 1,979
0 votes
1 answer
238 views

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 ...
LaVache's user avatar
  • 423
4 votes
1 answer
2k views

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 ...
sdaau's user avatar
  • 7,128
0 votes
1 answer
2k views

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 ...
Tristan F.-R.'s user avatar
0 votes
1 answer
386 views

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 ...
Jaay's user avatar
  • 145
1 vote
1 answer
1k views

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 ...
xeruf's user avatar
  • 651
0 votes
1 answer
451 views

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?
George M.'s user avatar
5 votes
2 answers
13k views

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 ...
Alexey's user avatar
  • 2,380
1 vote
1 answer
438 views

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 ...
an.ordinary.user's user avatar

15 30 50 per page
1
2 3 4 5
12