How secure my /tmp on VPS ?

nimafire

Verified User
Joined
Aug 10, 2008
Messages
249
hello i have try this page:
http://www.webhostgear.com/34.html

but csf say that:
Check /var/tmp is mounted as a filesystem WARNING /var/tmp should either be symlinked to /tmp or mounted as a filesystem

and

Check /tmp is mounted as a filesystem WARNING /tmp should be mounted as a separate filesystem with the noexec,nosuid options set

i have do http://www.webhostgear.com/34.html on my cpanel without any problem.
can any one help me?
cent os
VPS

tnx
 
You mean its ok on Centos VPS ?

dd if=/dev/zero of=/mnt/tmpMnt bs=1024 count=1000000
/sbin/mke2fs /mnt/tmpMnt
cd /
cp -R /tmp /tmp_backup
mount -o loop,noexec,nosuid,rw /mnt/tmpMnt /tmp
chmod 1777 /tmp
/tmp_backup/* /tmp/
rm -rf /tmp_backup
echo "/mnt/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0" >> /etc/fstab
rm -rf /var/tmp
ln -s /tmp /var/tmp


I NEED STEP BY STEP. AND i thinl that loop is disable on VPS
 
i thinl that loop is disable on VPS

That depends on your VPS. There are at least different types of VPS systems out there. Simply saying you have a VPS does not tell us enough.
 
Back
Top