/scripts/securetmp is fine but...

bsasninja

Well-Known Member
Sep 2, 2004
527
0
166
I tried two things, one running the easy /scripts/securetmp to protect tmp folder.
And the other mounting the tmp folder as noexec.
In both, bash scripts cant be run inside tmp folder.

But if you run for example perl /tmp/a.pl or sh /tmp/a.c the script runs ok. Is there a way to prevent outside calling of scripts inside tmp folder??

Thank you
 

Solokron

Well-Known Member
Aug 8, 2003
851
1
168
Seattle
cPanel Access Level
DataCenter Provider
This is where phpsuexec can come in handy to track down hackers that attempt to run obscure scripts in tmp.

bsasninja said:
I tried two things, one running the easy /scripts/securetmp to protect tmp folder.
And the other mounting the tmp folder as noexec.
In both, bash scripts cant be run inside tmp folder.

But if you run for example perl /tmp/a.pl or sh /tmp/a.c the script runs ok. Is there a way to prevent outside calling of scripts inside tmp folder??

Thank you