The process for securing your "/tmp" directory only takes a few moments, and can be accomplished within a few minutes. Please follow the step-by-step directions outlined below for further information:
cd /dev && dd if=/dev/zero of=tmpMnt bs=1024 count=100000 && /sbin/mke2fs /dev/tmpMnt && cd / && cp -R /tmp /tmp_backup && mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp && chmod 1777 /tmp && cp -R /tmp_backup/* /tmp/ && rm -rf /tmp_backup
# vi /etc/fstab
/dev/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0
Should you have any further questions pertaining to your cPanel license, please feel free to get in contact with our web hosting support team for additional guidance.
Article Number: 134
Posted: Tue, May 15, 2012
Last Updated: Fri, May 18, 2012
Posted: LicenseCube Support [support@licensecube.com]
Online URL: http://kbase.licensecube.com/control-panel-licenses/how-do-i-secure-my-tmp-partition-within-cpanel-whm.html