leonep

Well-Known Member
Nov 18, 2014
230
18
68
Pescara
cPanel Access Level
Root Administrator
Hi guys i am looking for increase security . Reading
Tips to Make Your Server More Secure - cPanel Knowledge Base - cPanel Documentation

i have found tips called "Harden your /tmp partition"

in my config i have:
[email protected] [/]# df -h /tmp/
Filesystem Size Used Avail Use% Mounted on
/dev/root 20G 8.8G 9.7G 48% /

and /etc/fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/md2 / ext3 errors=remount-ro 0 1
/dev/md3 /home ext3 usrjquota=quota.user,jqfmt=vfsv0 1 2
/dev/sda4 swap swap defaults 0 0
/dev/sdb4 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0

Cpanel recommend to use a separate /tmp partition that you mount with the nosuid option.
I am not expert in partitioning but i want secure my /tmp if possible. can someone help me please? thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

You can utilize the following command to secure your /tmp partition:

Code:
/scripts/securetmp
Thank you.