From a cloud provider I received a RHEL 7 VM which has noexec
set on /tmp
.
[user@myserver]mount | grep /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,seclabel)
/dev/mapper/SystemVG-var_tmp on /var/tmp type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
I am installing a tool that won't work properly with noexec
. This is a COTS tool that I cannot change. To remove noexec
I can do
mount -o remount,exec /tmp
The problem is that after reboot /tmp
is noexec
again.
in /etc/fstab
I have the following lines pertaining
/dev/mapp/SystemCG-tmp /tmp xfs defaults 0 0
tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0
When I remove noexec
from the line above this also does not seem to have any effect. After reboot the /tmp
folder is still noexec
.
How can I permanently remove noexec
from /tmp
?