LawsHosting
Verified User
Ok, I've read on here and via Google about noexec flag on /tmp... but can anyone tell me whats the point? As can still execute (sh & perl) in /tmp on all my servers (Debian Etch 4)..
Heres my steps :
So, whats the point?
Heres my steps :
dd if=/dev/zero of=tmpMnt bs=1024 count=250000
/sbin/mke2fs /tmpMnt
cd /
cp -R /tmp /tmp_backup
mount -o loop,noexec,nosuid,rw /tmpMnt /tmp
chmod 1777 /tmp
cp -R /tmp_backup/* /tmp/
rm -rf /tmp_backup
/dev/sda1 / ext3 errors=remount-ro,usrquota,grpquota 0 0
/dev/sda2 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0
So, whats the point?