How to add noexec to /dev/shm?
Score: 5/5 (12 votes) Add nodev, nosuid, and noexec options to /dev/shmEdit the file /etc/fstab , enter: ... Locate the /dev/shm line: tmpfs /dev/shm tmpfs defaults 0 0.Append the text ,nodev,nosuid,noexec to the list of mount options in column.The entry should look like this: tmpfs /dev/shm tmpfs d...