Security Basics mailing list archives

Re: How to secure /tmp and /dev/shm at linux?


From: "Phil Cryer" <phil () cryer us>
Date: Tue, 14 Jun 2005 14:51:52 -0500

-----Original Message-----
From: "Monty Ree" <chulmin2 () hotmail com>

I have found that lots of attackers using /tmp or /dev/shm to save 
and execute backdoor. So I would like to secure this directory..

I opened /etc/fstab file and added noexec, nosuid option and remounted.

On FreeBSD I've always set /tmp this way:

/dev/ad0s1e             /tmp            ufs     rw,nosuid,nodev         2       2

P
"You teach best what you most need to learn." - Richard Bach


Current thread: