Changing the mount option for /tmp
Check to see if the /tmp directory is mounted with noexec by running the following command from a command window.
mount | grep /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
If /tmp is mounted with noexec, follow this procedure to change the mount option for /tmp:
- Edit
/etc/fstab
as root and removenoexec
from the mount options of/tmp
. - Reboot the system, or run the following command from a command
window:
mount -o remount /tmp