In general, running your /tmp (or /var/tmp) without the execute bit set is a good idea. And sometimes, you don’t have a choice – for example, when running in a hosting environment running Virtuozzo.
You’re liable to see a mount that looks like this:
1 2 3 4 | |
However, sometimes that’s a problem, for example if you run the fantastic checkinstall tool to package software. You might see an error message like this:
1
| |
The noexec permission has gotten us. How to work around it? Here’s a quick, easy to roll back method:
1 2 3 4 5 6 7 8 | |
You could also (potentially) remount /tmp without that option temporarily, but that isn’t always possible. (See ‘virtuozzo’ above.)