Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Tags
Author: UltratechHost - Replies: 0 - Views: 4000
Securing Your /tmp Partition with Cpanel/WHM
If you are renting a server then chances are you only have one big partition. Learn how to create a secure /tmp partition even while your server is already up and running on Cpanel/WHM.

Securing Your /tmp Partition with Cpanel/WHM

If you are renting a server then chances are everything is lumped in / and a small amount partitioned for /boot and some for swap. With this current setup, you have no room for making more partitions unless you have a second hard-drive. Learn how to create a secu
Author: UltratechHost - Replies: 0 - Views: 3864
Resize a /tmp partition
1. Cpanel chkservd
/etc/rc.d/init.d/chkservd stop

2. Apache
/etc/init.d/httpd stop

3. stop mysql server:
# /etc/init.d/mysqld stop

Unmount /tmp. If you’re unable to, you can do an lsof (lsof |grep /tmp) to see what processes are still writing to it, and kill them off. Or do a lazy unmount (umount -l /tmp) .


4. umount -l /tmp
umount -l /var/tmp

5. Then remove the corrupt partition file:
rm -fv /usr/tmpDSK

6. Then create a nice new one:
/scripts/securetmp

7. Restart Apache
/scripts/restart