Translate

tmp secure directory is not empty | centos not boot with tmp secure error |tmp.secure :directory is not empty

tmp secure directory is not empty | centos not boot with tmp secure error |tmp.secure :directory is not empty


May VPS servers may have this problem..
If you have VPS machine with Centos and CPanel after use /scripts/securetmp your server does not boot and show this error in OS boot level.

tmp secure directory is not empty
The problem that you have when you see the boot screen:
Can not move /usr/tmp.secure to /ur/tmp.secure.cpback/tmp.secure :directory is not empty

This problem from cPanel secure tmp and we can solve it by disable /scripts/securetmp on boot on cPanel Server.

cPanel's /scripts/securetmp is a great and easy tool to secure your tmp part of your server and it used industry standard security measurements.

But sometimes will slow down your server startup time, because it's time consuming process, if your tmp size is bigger, specially on HDD then you must fix it by following command:


 To fix this issue disable it on boot just issue this command on your:

touch /var/cpanel/version/securetmp_disabled