Having problems securing my VPS
I've been trying to secure the /tmp folder and it isn't working.
So far I've done this::
dd if=/dev/zero of=tmpMnt bs=1024 count=1000000
mk2fs /dev/tmpMnt
mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp
-- This gives me an errors message: mount: could not find any device /dev/loop#
so I tried:
mount -o noexec,nosuid,rw /dev/tmpMnt /tmp
-- This gives me an errors message: mount: unknown filesystem type 'ext2'
so I tried:
mount -t ext3 -o noexec,nosuid,rw /dev/tmpMnt /tmp
-- Now I get this: mount: /dev/tmpMnt is not a block device (maybe try `-o loop'?)
So I tried:
mount -t ext3 -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp
-- Now I get this: mount: mount: could not find any device /dev/loop#
Why is this not working??