大网数据广告活动
服务器运维问答

Random empty files called "file*" are created on /tmp

· 52CE 我爱测

I have two RHEL 6.10 servers where /tmp is constantly being filled up with thousands of files with the following names -rw-rw-r--. 1 root root 0 Feb 22 17:30 fileoQ1gE0 -rw-rw-r--. 1 root root 0 Feb 22 17:31 fileTFa0e7 -rw-rw-r--…

问题原文

原帖链接 · Rodrigo · CC BY-SA 4.0

I have two RHEL 6.10 servers where /tmp is constantly being filled up with thousands of files with the following names

-rw-rw-r--. 1 root    root        0 Feb 22 17:30 fileoQ1gE0
-rw-rw-r--. 1 root    root        0 Feb 22 17:31 fileTFa0e7
-rw-rw-r--. 1 root    root        0 Feb 22 17:32 fileSxEdEa
-rw-rw-r--. 1 root    root        0 Feb 22 17:33 filegoLf6g
-rw-rw-r--. 1 root    root        0 Feb 22 17:34 filebj3CJv
-rw-rw-r--. 1 root    root        0 Feb 22 17:35 fileEVJerA
-rw-rw-r--. 1 root    root        0 Feb 22 17:36 file5X9G3G
-rw-rw-r--. 1 root    root        0 Feb 22 17:37 fileScyBJY
-rw-rw-r--. 1 root    root        0 Feb 22 17:38 filePCq3K0
-rw-rw-r--. 1 root    root        0 Feb 22 17:39 filePnBcVp
-rw-rw-r--. 1 root    root        0 Feb 22 17:40 fileTbupIR
-rw-rw-r--. 1 root    root        0 Feb 22 17:41 file4jmFGS
-rw-rw-r--. 1 root    root        0 Feb 22 17:42 fileBP8HL0
-rw-rw-r--. 1 root    root        0 Feb 22 17:43 fileb605If
-rw-rw-r--. 1 root    root        0 Feb 22 17:44 file8Rubgm
-rw-rw-r--. 1 root    root        0 Feb 22 17:45 file7UJEJr
-rw-rw-r--. 1 root    root        0 Feb 22 17:46 filethKoZv
-rw-rw-r--. 1 root    root        0 Feb 22 17:47 fileJEVJpL
-rw-rw-r--. 1 root    root        0 Feb 22 17:48 filebeLOuP
-rw-rw-r--. 1 root    root        0 Feb 22 17:49 fileN1VVJU
-rw-rw-r--. 1 root    root        0 Feb 22 17:50 fileHO9fll
-rw-rw-r--. 1 root    root        0 Feb 22 17:51 filejEj1Rq
-rw-rw-r--. 1 root    root        0 Feb 22 17:52 fileMPnCWJ

Root's crontab doesn't have anything so, is there any way to know what process is creating files here? Even though they're 0 bytes it is bothering me since I just don't know why they're created.

已采纳解答

原帖链接 · John Mahowald · CC BY-SA 4.0

Enable auditd and write some rules watching write-type permissions to this directory.

-w /tmp -p w -k tmp

How to monitor permission, ownership or any other change to a particular directory or file

RHEL 6 Security Guide > Chapter 7. System Auditing

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-02-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。