The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
9 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 ...
1
vote
1answer
17 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
23 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?
2
votes
1answer
485 views

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

one day I was doing some stuff and I might have changed something which I shouldn't (I was working on the /etc/network/interfaces file). By the way, this is my OS: $ uname -a Linux ribas 3.16.0-4-...
0
votes
1answer
24 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 ...
0
votes
0answers
20 views

Vagrant LXC mounts small /tmp partition

I've got a vagrant box running with an ubuntu based LXC container. I had to run a script that uses /tmp to store some files temporarily. The script kept failing, having looked at what's up, it turned ...
4
votes
0answers
113 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 ...
5
votes
3answers
295 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 ...
0
votes
2answers
114 views

Create a separate partition for /var/ /var/log and /tmp/ [closed]

I was asked at work to setup an RHEL 6.7 server to run an application called Nessus 5.2. As a security measure, they requested to create separate partitions for /tmp, /var/, /var/log. Would you ...
1
vote
1answer
73 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 ...
5
votes
0answers
634 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
69 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
128 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
63 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?
7
votes
2answers
355 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
90 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. ...
1
vote
2answers
347 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 ...
0
votes
3answers
795 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/...
0
votes
1answer
166 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 ...
0
votes
0answers
185 views

Avoiding heredoc sh[process_number].* files in /tmp directory

I have a .ksh file which logs into sqlplus and runs some queries. The block of code is something as mentioned below: //Other things done in ksh sqlplus -s @connect.sql << EOF Query1 Query2 ...
44
votes
1answer
6k 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 ...
3
votes
3answers
3k 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
190 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 ...
0
votes
0answers
400 views

DD-WRT: /tmp exec permission

After making a simple hello world OpenWrt package I installed it to the /tmp folder on the dd-wrt device. The program shows up in ls /tmp but when I try to execute it, it shows me /tmp/helloworld: ...
1
vote
1answer
58 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 ...
8
votes
2answers
3k 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
159 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 ...
27
votes
4answers
21k 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
792 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
87 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 ...
22
votes
3answers
4k 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
3k 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
503 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
176 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 ...
26
votes
2answers
8k 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. ...
3
votes
1answer
24k views

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

My / only has about 800MB free space left. I guess it is the reason that $ convert * book.pdf Segmentation fault (core dumped) bash: cannot create temp file for here-document: No space left on device ...
1
vote
3answers
51 views

Why does Debian prefer a temp file replacing the original over modifying bytes in original file?

In the mp3gain manpages, you can read the following: -t mp3gain writes modified mp3 to temp file, then deletes original instead of modifying bytes in original file (This ...
1
vote
0answers
213 views

What is the most elegant way to limit /tmp?

Recently I was struck by this tricky bug. In it, /tmp gets overflowed with symlinks until the system runs out of inodes. What is the best way to be sure that this can never happen again? I'd like to, ...
1
vote
3answers
139 views

How to access temporary file straight after creation?

I've script which is connecting to remote host via SSH, creates temporary file and executing the following command: Calling system(mysql --database=information_schema --host=localhost < /tmp/...
1
vote
1answer
49 views

What are the files in /tmp that start with “qipc”?

There are empty files like this in my /tmp directory: qipc_sharedmemory_soliddiskinfomemac5ffa537fd8798875c98e190df289da7e047c05 ...
1
vote
1answer
417 views

SUID-bit not working for executables within /tmp directory

Printing the value of getuid() and geteuid() from an executable with SUID-bit (chmod +s) turned-on, seems to result with the original caller ID instead of the owner id if the executable is located ...
4
votes
2answers
566 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
94 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
264 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 d-...
2
votes
2answers
568 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
387 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 /tmp/...
2
votes
1answer
160 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 ...
9
votes
5answers
2k 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 ...
8
votes
2answers
11k 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 /tmp/....
2
votes
4answers
223 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 ...