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

[-]
Tags
secure the tmp directory

Secure the tmp Directory
#1
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 Dedicated Server using a cPanel Script. You MUST have cPanel installed for this to work.

* Login to your server as root via SSH.
Code:
* 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)