Questions tagged [tmp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
1k views

RHEL7 & PHP: File is not uploading (even into /tmp/)

After few days, since I asked this question: LINK I realized, that maybe it's another problem. I used package inotifywait to check, is a temporary file generating after sending html form. ...
1
vote
0answers
557 views

Segmentation Fault in System Directory `/tmp`

When compiling FFmpeg, the configuring failed because of a segmentation fault in exec checking. I posted my problem here, and I solved my problem by exporting a new TMPDIR. What's weird is the ...
6
votes
2answers
5k views

tmpfs does not overflow to swap

I've configured tmp in /etc/fstab like this: tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 2 The problem is that now /tmp is limited to half of the machine's memory, and when it reaches that limit I'...
43
votes
3answers
9k views

is /tmp guaranteed to exist?

Do I need to check & create /tmp before writing to a file inside of it? Assume that no one has run sudo rm -rf /tmp because that's a very rare case
8
votes
1answer
568 views

permissions of symlinks inside /tmp

I have 2 users in my machine: linuxlite and otheruser. otheruser has a file: otheruser@linuxlite:~$ ls -l a -rw-rw-r-- 1 otheruser otheruser 6 Mar 31 12:47 a otheruser@linuxlite:~$ cat a hello ...
0
votes
2answers
1k views

Temporary directory per process

Is there a "standard" temporary directory directory allocated for an individual process which disappears along with the process itself? Something that looks like /proc/$pid/tmp or /proc/self/tmp. ...
8
votes
2answers
14k views

Generic way to get temp path?

I heard about $TEMP and $TMP, but I think they are not standard for every distro. As far as I know, the best way to get the temp dir is just /tmp, is there any distro that won't work using that path?
10
votes
1answer
31k views

Can you remount /tmp partition to exec while live?

I have a server I need to re mount the /tmp partition to run exec. The code I want to use is: mount -o remount,exec /tmp Run the program that needs it. Than change it back. mount -o remount,...
7
votes
2answers
8k views

why php can not see /tmp files

i have simple test.php page: <pre><?php system("ls -la /tmp"); ?></pre> which always shows just: . and .. folders and nothing else in browser. in the command line: 1) ls -la /...
1
vote
1answer
252 views

noexec flag for /tmp (OpenSUSE)

I would harden my OpenSUSE 42.2. If I put noexec flag for /tmp and /var/tmp locations mount, zypper could suffer for this? Possible issues could depend by single package working and needing but above ...
2
votes
1answer
3k views

How to increase size of root?

Here is information regarding my disk space consumption. Command (m for help): p Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (...
2
votes
1answer
5k views

Symbolic link not working as expected when changes user

Symbolic link not working, using standard UBUNTU 16 LTS... It shows "Permission denied" where I expected to get access, not working even after chown. Full example: sudo rm /tmp/file.txt # if exist, ...
6
votes
4answers
2k views

Using the /tmp folder for backups, recommended?

Is it safe to put my temporary manual backups of my website codebase and database into the /tmp folder? I'm running Debian 8. I want to leave them there for a couple days. I am not sure if this ...
2
votes
0answers
4k views

-bash: cannot create temp file for here-document: No space left on device

This is not a duplicate of (although related to) bash: cannot create temp file for here-document: No space left on device. My /tmp is getting filled up fast, although my rootfs isn't full and the ...
2
votes
0answers
484 views

Postgres Vulnerability through public schema?

On Debian 8.5, I'm finding weird processes and files in /tmp: file "cool" is owned by root, group=postgres<br> file "Injection.sh", "zeroteam.so", "zteam" Why do those file exist? How can I ...
1
vote
0answers
69 views

Why root lose permission of 1st and 2nd level symlink? [duplicate]

Why root lose permission to run 1st level symlink /bin/planet and 2nd level symlink /tmp/earth, except symlink target /tmp/sun at the end ? Instead ordinary user no problem to run 3 of them: xiaobai@...
3
votes
1answer
929 views

How do I clean out my /tmp directory upon reboot?

I’m using Amazon Linux. Below is the uname info … [davea@mymachine ~]$ uname -a Linux sandbox.mydomain.com 4.4.18-35.99.amzn1.x86_64 #1 SMP Wed Jul 27 22:37:49 UTC 2016 x86_64 x86_64 x86_64 GNU/...
3
votes
1answer
2k views

Is a subdirectory of /tmp a suitable place for Unix sockets?

I am looking for a secure place to put Unix domain sockets that will be used to control a REPL. On Linux, I would use /run/user/$UID, which meets all requirements except for portability. I need the ...
-4
votes
1answer
559 views

permanently change /tmp stickbit to -t

I want to change the stickbit permision of /tmp directory to -t. The problem is every time I reboot the permissions reset to 1777. How can I permanently change the /tmp directory to 0777 ? I have ...
0
votes
1answer
534 views

tmux icon plugins not displaying in status bar

I've installed TPM and am running it last and so on but none of the icons from the icon plugins are displaying correctly, nor do several other things I've added, I don't know what's going on I've ...
2
votes
1answer
7k views

How to change the tmp directory used by a specific service user?

I want to change the temporary directory used by a specific user (jenkins in my case). The problem is that this needs to be in effect for any process running as Jenkins user and changing it in ....
0
votes
1answer
44 views

Trailing string in name of temporary directories

I've found that systemd private directory names of ends with a string, for example: systemd-private-3108aa34ce664b6dbb374430ba5f0592-mariadb.service-Q78z1I What does mean such a string?
74
votes
10answers
225k views

Tab completion errors: bash: cannot create temp file for here-document: No space left on device

When using the tab bar, I keep getting this error: bash: cannot create temp file for here-document: No space left on device" Any ideas? I have been doing some research, and many people talk about ...
0
votes
1answer
440 views

What does SAMBA use /tmp for?

I just had a major issue with Samba, I changed my /tmp permissions to something rather restrictive, and after this point I could not log in to samba from any windows client (I did not try a linux ...
9
votes
1answer
1k views

bash process substitution with temporary file

Some programs needs their files to be seekable, for example objdump does. $ objdump -D -b binary -m i8086 <(echo 0xea 0x5b 0xe0 0x00 0xf0|xxd -r -p) objdump: Warning: '/proc/self/fd/11' is not an ...
9
votes
3answers
3k views

Watch /tmp for file creation and prevent deletion of files? [duplicate]

I have a binary that creates some files in /tmp/*some folder* and runs them. This same binary deletes these files right after running them. Is there any way to intercept these files? I can't make the ...
3
votes
1answer
2k views

Unable to re-create /tmp directory

Recently, I have found that my debian 8.2 (jessie) installation is taking forever to boot because systemd will hang for several minutes on a start job is running for create volatile files and ...
9
votes
1answer
3k views

OEL6 Slow boot && Millions of socket files in /tmp/orbit-gdm

Background on question Lately I've been having some trouble with slow booting on the servers, sometimes over 2 hours to boot stuck on "Enabling Local Filesystem Quotas:" After searching I managed to ...
0
votes
2answers
341 views

Folder in /tmp won't delete despite the computer being restarted

There is a folder in /tmp/ that won't delete despite my computer being restarted. I know it's not being recreated at restart since the last edited and added date is 23 November 2015. I do know which ...
0
votes
4answers
1k views

How do I find files that are created/modified/accessed before reboot?

On a remote system (that I am not an administrator of) I have configured an alternative TMPDIR in my `.profile (because the system default has very limited space). This alternative TMPDIR is of ...
0
votes
1answer
652 views

Temporary file for running a command

How can I run something more simpler than: echo date > tmp.html && firefox tmp.html && rm tmp.html Is it possible to get the same without creating and deleting the tmp.html?
16
votes
2answers
8k views

How can I safely create and access temp files from shell scripts?

I've read that redirecting output to a fixed name file in /tmp can be a security risk, because if an attacker (or malcontent) notices that a file /tmp/tmpfileformyscript.tmp is created when I run my ...
0
votes
2answers
600 views

When will Cent OS delete empty dirs in /tmp? [duplicate]

On our webserver, we use /tmp to store a server-side cache. The cache path is unique for each website, and also for each git revision. So when the code is updated, the old cache folder is abandoned. ...
3
votes
2answers
8k views

Moving /tmp folder to different location. Problems with /tmp not being emptied

I have two harddrives on my computer running Linux Mint. The first is an SSD and has my / partition and the second is an HDD and has my /home partition. I have heard that too many writes to the SSD ...
4
votes
3answers
12k views

Why is `systemd-tmpfiles --clean` not working?

I have the following configuration to clean up temporary files (default for CentOS 7), which says that files in /tmp should be removed if they are more than 10 days old. [root]# tail -n +10 /usr/lib/...
1
vote
1answer
2k views

/dev/mapper/vg00-var maxing out

Over the past few years we have had multiple Linux servers have the same problem time and time again: our /dev/mapper/vg00-var folder maxes out at 100%, which means all sites on the server die. We ...
102
votes
1answer
62k views

What happens when you 'mount over' an existing folder with contents?

Right now /tmp has some temporary files in it. When I mount my hard drive (/dev/sdc1) on top of /tmp, I can see the files on the hard drive. What happens to the actual content of /tmp when my hard ...
12
votes
3answers
23k views

Shall I save my crontab file in /tmp?

I ssh to a server, and want to add some daily jobs (specifially to renew Kerberos tickets even when I log out and I still want my programs in screen or tmux continue to run) to cron. So I run crontab -...
1
vote
1answer
779 views

Cannot log in to my Debian Wheezy 7 system

I have a Debian Wheezy 7 installation. When I turn it on it boots to the log in screen normally. However when I type in my username/password and try to login the screen briefly turns off for about one ...
1
vote
1answer
166 views

Where should generated scripts be placed in the filesystem?

I am writing a piece of software (C++) which generates Python scripts. Where should these temporarily existing scripts be placed in the file system? I read a couple pages about the Filesystem ...
39
votes
4answers
41k views

How to make a temporary file in RAM?

I have a script that will pipe its output to |tee scriptnameYYMMDD.txt. After each cycle of the for loop in which the output is generated, I'll be reversing the file contents with tac ...
3
votes
2answers
444 views

How can I test if my /tmp “works”?

I had to delete some files and whatever, long story, I ran sudo rm -rf /tmp/. Now, on mac (might be universal, I'm not sure) it is a symlink to /private/tmp/. But my /tmp/ folder has a thumbnail ...
225
votes
6answers
222k views

How create a temporary file in shell script?

While running a script, I want to create a temporary file in /tmp directory. After execution of that script, that will be cleaned by that script. How to do that in shell script?
4
votes
2answers
3k views

Firefox temporary files

In Firefox, when I choose to open a file without saving it and without an internal plugin (like a pdf or a doc file) the default behavior is that the file is saved in /tmp as a temporary file and that ...
0
votes
1answer
654 views

Is it a bad habit to move things to tmp?

Im not sure what type of issues this could cause (might be none, of course). But when I had a folder a few days ago that could not be deleted even after running: chflags nouchg -R and then sudo rm -...
56
votes
3answers
31k views

Finding the correct tmp dir on multiple platforms

I have a script that needs to create temporary files for its work, and clean up after itself. My question is about finding the right base directory for the temporary files. The script needs to work ...
3
votes
2answers
14k views

specify mount option in /etc/fstab (mode=1777)

I have following line in my /etc/fstab: /dev/mapper/tmp /tmp ext4 noexec,nodev,nosuid,mode=1777 0 0 When I try to mount /tmp, I get following error in dmesg: EXT4-fs (dm-1): ...
2
votes
1answer
2k views

How to clean /tmp?

In general, how can we clean /tmp for freeing up the space taken by non-needed files? Note that I once made a mistake by deleting everything under /tmp, and then after rebooting, my Ubuntu was broken....
1
vote
1answer
317 views

When the RAM is used up, what will happen?

When I ran ImageMagick's convert to convert and combine image files into a pdf file, it will create 10GB temporary dirs and files in /tmp. I am not sure if it did that all the time, or because my ...
27
votes
2answers
9k views

I made a mistake last night, which deleted 1800GB of my File-Server unintentionally

I ran this command yesterday, I thought on a test machine, but it was a File-Server connected through SSH. sudo rm -rf /tmp/* !(lost+found) My terminal emulator is Konsole. My system is Debian 7. ...