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

Tags
Author: UltratechHost - Replies: 0 - Views: 2575
Secure the tmp Directory
Changing Partition Attributes (such as securing /tmp) on your Dedicated Server does not need a reboot. You can remount the partition immediately with the new attributes doing something like…

Code:
mount -o remount,noexec,nosuid /tmp

or

make the change in the /etc/fstab

Code:
LABEL=/tmp /tmp ext3 noexec,nosuid,nodev,rw 1 2

then remount it

Code:
mount -o remount /tmp

Cpanel Server

The following is how to secure your /tmp directory on your De
Author: UltratechHost - Replies: 0 - Views: 2536
Securing /tmp
Every system needs temporary folders that any user is able to read and write BUT these directories should not be able to execute programs or scripts. Though this will only protect you from somebody running the script directly it will help with a large portion of the automated rootkits and trojans that script kiddies use. They will still be able to put the files on the system but they will be unable to execute them and create the back door. One of the biggest problems is php injection via apache
Author: UltratechHost - Replies: 0 - Views: 3588
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: 3522
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