How To Know If Tmp Is Noexec
Aug 29, 2007how to check if the tmp is mounted as noexec?
View 9 Replieshow to check if the tmp is mounted as noexec?
View 9 RepliesI set /tmp partition with noexec, but not /home do you think it's a good idea to do so?
I belive it won't break perl/php scripts (maybe just those being directly called as an executable on CRON) anyone know any cons for that?
I have webserver running php with apache suexec and my /home partition is mounted with noexec in fstab.
My httpd.conf includes line like
Action application/x-httpd-php5.cgi /cgi-sys/php5.cgi
AddHandler application/x-httpd-php5.cgi .php
everything works perfectly. However I tried same configuration for python and perl and it did not work. But it worked if I mounted /home without noexec.
What makes php so special that it can work with noexec partitons as cgi while others cant? I would really like to know as I would like to run perl and python with noexec partitons.
Please dont discuss alternatives to noexec flag. This would be off topic.
I have successfully mounted the /tmp folder with noexec option. but whenever I reboot the server, It looses the mounted device.. why is that?
using following command to mount
mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp
I have added the following line to /etc/fstab
/dev/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0
server : CentOs 5.x