1) Ensure you stop any services that may be writing to the /tmp folder (web server , mysql , ftp daemon)
2) clean your old temp folder !
# rm /tmp -rf
# mkdir /tmp"
3) Create a blank file , in order to mount up as /tmp
# mkdir /usr/local/tmppartition
# cd /usr/local/tmppartition
# dd if=/dev/zero of=tmpMnt bs=1024 count=10000000
4) Format the file with a filesystem !
# /sbin/mke2fs /usr/local/tmppartition/tmpMnt
5) Mount the file up to the /tmp folder !
# mount -o loop,noexec,nosuid,rw /usr/local/tmppartition/tmpMnt /tmp
6) Chmod the new folder to be world writable ..
# chmod 1777 /tmp
7) add the line to your fstab file so that the file remounts each boot .
# pico /etc/fstab
add the following lines at the bottom of the fstab file
-----------------------------------------------------------------
/usr/local/tmppartition/tmpMnt /tmp ext2 loop,noexec,nosuid,nodev,rw 0 0
-----------------------------------------------------------------
(without the ----------------------'s )
8) Enjoy a secure /tmp folder ! (/scripts/securetmp)
- ناحیه کاربری
-
Store
- Browse All
- سرور مجازی آلمان Nvme و HDD
- سرور مجازی فنلاند
- سرور مجازی ترکیه
- سرور مجازی آمریکا
- سرور مجازی فرانسه
- سرور مجازی هلند
- سرور مجازی انگلیس
- سرور مجازی کانادا
- سرور مجازی آسیا-اروپا-کلود
- سرور مجازی هارد بالا Storage
- سرور مجازی مدیریت شده Managed
- هاست لینوکس استاندارد
- هاست لینوکس نامحدود حرفه ای (NVMe)
- هاست لینوکس پرحجم حرفه ای
- سرور مجازی ایران
- نمایندگی هاست لینوکس خارج Cpanel
- هاست مخصوص دانلود
- اکانت اینترنت و دانلود
- سرور اختصاصی حرفه ای
- لایسنس کنترل پنل - آنتی ویروس
- نمایندگی ها
- دیگر محصولات
- محصولات ویژه استریم زنده Live Stream
- سرور مجازی کلود آلمان-فنلاند
- ارتقا و ترافیک سرور
- ثبت دامنه جدید
- انتقال دامنه به ما
- اخبار
- مرکز آموزش
- وضعیت شبکه
- بازاریابی
- تماس با ما