PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : آموزش تصويري سكيور كردن tmp



iranwebwork
September 30th, 2009, 12:06
آموزش تصويري secure كردن tmp اميد وارم به كار بياد ام خوب خيلي ها بلدن خيلي ها هم نه


http://dl6.gettyfile.ru:8080/37/364954/Securing_Tmp_Folder.rar

onlypayam
March 9th, 2010, 20:33
لینک کار نمیکنه!

Woshka
March 9th, 2010, 20:51
اگه WHM دارید اینو ببینید
How to secure tmp the easy way if you have WHM/Cpanel - Woshka's Experiences (http://woshka.com/blog/cpanel/how-to-secure-tmp-the-easy-way-if-you-have-whm-cpanel.html)

Arashdn
March 10th, 2010, 06:23
دقت کنید رو سرور های openVZ جواب نمیده

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 0777 /tmp

7) add the line to your fstab file so that the file remounts each boot .

# nano /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

iranwebwork
March 10th, 2010, 12:12
من این رو خیلی وقه پیش گذاشتم.
حالا پیداش میکنم روی کامپیوترم بعد یه جا آپ میکنم