Making /tmp non-executable
Increase security by mounting /tmp as non-executable.
Many high security environments require that the /tmp directory be mounted with the noexec flag set to prevent executables from executing from /tmp. However, when /tmp is non-executable, the Cassandra database fails to starts because JNA cannot start when it does not have a file system location to keep temporary files.
tail -3 /var/log/cassandra/system.logThe error is similar to:
ERROR main 2015-12-18 09:57:00,879 CassandraDaemon.java:213 - JNA failing to initialize properly. Use -Dcassandra.boot_without_jna=true to bootstrap even so.
INFO Thread-2 2015-12-18 09:57:00,880 DseDaemon.java:418 - DSE shutting down...
INFO Thread-2 2015-12-18 09:57:00,881 PluginManager.java:103 - All plugins are stopped.
Procedure
To make /tmp non-executable and provide access: