You can remount the partition immediately with the new attributes doing something like…mount -o remount,noexec,nosuid /tmp or
make the change in the fstab
LABEL=/tmp /tmp ext3 noexec,nosuid,nodev,rw 1 2
then remount it mount -o remount /tmp
The following is how to secure your /TMP directory using a cPanel Script.
You MUST have cPanel installed for this to work.
1. Login to your server as root via SSH.
2. Type: /scripts/securetmp
That’s it your done. cPanel wrote that script to allow users to secure their /TMP Directory very easily.
Latest posts by Freestyler (see all)
- Optimizing Keywords From Free Directory Submissions - June 15, 2007
- Why do I get an error when I try to send emails? - December 26, 2006
- My IP address is blacklisted. How can it be unlisted? - December 26, 2006