I plan to use this line in /etc/fstab
on Ubuntu a 14.04 server running LAMP:
/run/shm/tmp tmpfs nosuid,nodev,noexec,size=8G 0 0
My question is, does anyone know if I will create problems by mounting /tmp
with nosuid
and noexec
?
Edited Jan-31-2015: The answer referred to above in "Best way to mount /tmp in fstab?" does not answer my question about what problems might occur if I mount /tmp with nosuid and noexec. It simply mentions that its not necessary to do so, and that something "might" break if I use those options.
The answer below, by aFoP and muru does answer my question by enumerating what will fail, and how to work around the problem.
Thanks aFoP and muru!
/tmp
havingexec
permissions. I have begun writing a script to deal with this and I found many questions in other places about the symptoms with no clear answer. There are also guidelines like Center for Internet Security which recommend to configure noexec on /tmp an others but they don't tell you this and they link to bug reports seemingly unrelated leaving readers in limbo with symptoms. A great dumpster fire from my point of view. I would even offer a 1k bounty on an answer. – LiveWireBT Mar 08 '21 at 22:35/tmp
, and AFAIK there isn't a Debian policy that says packages must support a noexec/tmp
. So what will the post become? A laundry list of random unrelated packages that have some problem or the other with a noexec/tmp
? – muru Mar 09 '21 at 06:10