Also,
@Elizabeta
Keep in mind that this will continue to clear files in temp every 10 days. The files it didn't remove were because of the following caveats:
1. Directories will not be removed by default - this would be anything with the d flag such as:
Code:
drwx------ 2 root root 4.0K Sep 5 13:53 11489._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.de06719d.tmp
2. The only files that look like they should have been removed are some of the UPDATENOW tmp files:
Code:
-rw------- 1 root root 970 Sep 5 13:53 11489._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.a18704ef.tmp
-rw------- 1 root root 3.8K Aug 1 12:09 12691._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.24487523.tmp
-rw------- 1 root root 970 Aug 1 12:09 12691._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.684d489d.tmp
And I believe this to be related to some attribute of the file - they're formatted differently than the rest of them with a
._USR
instead of
.USR
So I feel confident in saying that this is working as intended.
If you're curious as I am about why those specific files didn't get removed provide me the output as follows:
Code:
stat /tmp/11489._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.a18704ef.tmp
Code:
lsattr /tmp/11489._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.a18704ef.tmp
As far as the size of /tmp -
@quietFinn is correct, your tmp dir is too small for the recommended amount of space. If you're not able to store those files elsewhere, you can try and run
/scripts/securetmp
to change the size of
/tmp
as well, based on the size of your disk. There are also a number of useful tutorials on the internet for increasing the size of the
/tmp
parition