Results 1 to 5 of 5
Hi
I want to secure tmp folder and want to stop any execution there.
Please guide me for that
Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-01-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 65
How to secure TMP folder?
Hi
I want to secure tmp folder and want to stop any execution there.
Please guide me for that
Thanks
- 12-01-2011 #2
I use a 1GB partition for my /tmp folder which I mount with nodev, nosuid, and noexec.
- 12-01-2011 #3Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746
You can also make it a tmpfs filesystem, which means you don't use a physical partition on a hard disk, but instead RAM. But, as it is RAM, when you reboot, it is gone. But while it is there, it is FAST.
To test it, you can try e.g.:
Code:mkdir /tmp1 mount -t tmpfs tmpfs /tmp1 -o noexec,mode=1777
- 12-01-2011 #4
I used to put /tmp in RAM, but it doesn't really speed things up *that* much. It's just a place to store data while a program is working on it; it's not as if MPlayer transfers its files to /tmp before it plays them, it just plays them straight from the hard drive.
- 12-01-2011 #5Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746
Yes, you're right, it doesn't magically speed up one's system. I should have been clear about that. I used it for speed when I had specific requirements of writing to disk as fast as possible (and RAID was not an option). In that scenario, I had a specific program whose output I had strict control over - in that case, tmpfs was extremely efficient in terms of speed!


Reply With Quote
