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:

  1. Edit /etc/fstab as root and remove noexec from the mount options of /tmp.
  2. Reboot the system, or run the following command from a command window:
    mount -o remount /tmp