Last modified: 2025 April 24
Overview
The /usr/local/cpanel/scripts/securetmp
script lets you mount your server’s /tmp
partition to a temporary file. Securing this partition provides extra security for your server.
By default, the temporary file only uses 5% of your system’s available disk space in the /usr
partition, for a minimum of 500MB, up to a maximum of 4GB.
To set a specific amount of space that the /tmp
partition can use, set the Size, in MB, for the /tmp partition secured by securetmp setting in the System section of WHM’s Tweak Settings interface (WHM » Home » Server Configuration » Tweak Settings).
For more information about securing your server, read our Tips to Make Your Server More Secure documentation.
Run the script
To run this script on the command line, use the following format:
/usr/local/cpanel/scripts/securetmp [options]
Options
Use the following options with this script:
Option | Description | Example |
---|---|---|
--auto |
Skip all interactive customization questions. | --auto |
--daemonize |
Run this script as a background process.
Note:
The script runs this option by default.
|
--daemonize |
--install |
Include this script in the system startup process. | --install |
--uninstall |
Remove this script from the system startup process. | --uninstall |
--help |
Display the script’s help documentation. | --help |