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

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

secure the tmp directory

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…

mount -o remount,noexec,nosuid /tmp


make the change in the /etc/fstab

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

then remount it

mount -o remount /tmp

Cpanel Server

The following is how to secure your /tmp directory on your Dedicated Server using a cPanel Script. You MUST have cPanel installed for this to work.

* Login to your server as root via SSH.
* Type: /scripts/securetmp

Dinesh Kumar Mohanty
Ultra Web Solutions®
Bhubaneswar, Odisha, India.

UltratechHost - Your One Stop Offshore & Onshore Hosting Provider
Server Locations : Netherlands, Germany, Russia, Singapore & USA
Service Offers: Shared hosting | Reseller hosting | Cloud server | Dedicated server | VPS Hosting

Forum Jump:

Users browsing this thread: 1 Guest(s)