No executables in /tmp

Marc Christensen marc at mecworks.com
Mon Mar 27 16:01:06 MST 2006


You could also change the group of perl to a perl group and chmod to 
754.  Then only root and thoes in the perl can execute it.

Bryan Sant wrote:
> 
> Wo.  I mean:
> 
> #!/bin/bash
> 
> if [ -z "`lsof -p $$ | awk '{print $9}' | grep ^/tmp`" ] \
>     && [ -z "`echo $PWD | grep ^/tmp`"];
>   exec /usr/bin/perl-real $@;
> fi
> 
> -Bryan




More information about the PLUG mailing list