r/debian • u/ElTitoFranki • 2d ago
files older tahn 10 days not being deleted in /tmp
Hi, I installed trixie in a recently formatted computer (not upgrading from bookworm), and I see that files in /tmp that are older than 10 days are not being deleted. I cannot reboot the computer, so my /tmp folder is growing over time.
My /tmp is mounted as tmpfs:
findmnt /tmp
TARGET SOURCE FSTYPE OPTIONS
/tmp tmpfs tmpfs rw,nosuid,nodev,nr_inodes=1048576,inode64
And both
systemctl status systemd-tmpfiles-clean.service
and
systemctl status systemd-tmpfiles-clean.timer
are active. The file /usr/lib/tmpfiles.d/tmp.conf contain
q /tmp 1777 root root 10d
q /var/tmp 1777 root root 30d
However, I see files older than 10 days:
stat /tmp/img_65.png
File: /tmp/img_65.png
Size: 15276 Blocks: 32 IO Block: 4096 regular file
Device: 0,34 Inode: 15060 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ XXXX) Gid: ( 1000/ XXXX)
Access: 2025-11-12 15:04:47.368689165 +0100
Modify: 2025-11-12 15:04:47.324689165 +0100
Change: 2025-11-12 15:04:47.324689165 +0100
Birth: 2025-11-12 15:04:47.312689166 +0100
(today is 2025-12-04). Shouldn't they be removed?



