
This cheatsheet provides instrutions about how to quickly secure /tmp and /var/tmp folders, to prevent malicious scripts execution.
Finally, reboot to check if everything is working:
df -h rebootNow, it is time to test the configuration: a binary file present in the /tmp folder should be executed. If there is a permission denied error, that means the configuration is successful.
On a cPanel server, it is much easier to secure the /tmp folder – simply run the following command as the ROOT user:
/scripts/securetmpNote: the above steps doesn't stop things like:
perl /tmp/script.pl sh /tmp/script.sh php /tmp/script.php Related Posts:- Complete CentOS secure server setup
- Transfer cPanel accounts between servers with minimum downtime
- Secure backup on remote server using zyxBackup and GPG
- Secure existing ProFTPd server installation
- Liferay Portal installation for enterprise intranets
- [windows] Copy files older than X days
- Secure existing OpenSSH installation