To add the NOEXEC option to the load point, the files in that mount point (note that it is not a directory) cannot be run directly even if the X permission is given. It is slightly safer to store only the data partition, although it cannot be run directly, but it can be done by Sh.
[Email protected] ~]# Vi/etc/fstab
#
#/etc/fstab
# Created by Anaconda on Mon 31 18:50:32 2015
#
# Accessible filesystems, by reference, is maintained under '/dev/disk '
# See mans Pages Fstab (5), Findfs (8), mount (8) and/or Blkid (8) for more info
#
/DEV/MAPPER/COOSHVG-LV01/LVM ext4 Defaults,usrquota,grpquota,noexec 1 2
[Email protected] ~]#/lvm/echo.sh
-bash:/lvm/echo.sh:permission denied
You can see that you can't do it directly, but ...
[Email protected] lvm]# sh/lvm/echo.sh
Hello,ming ze!
If this is the case, it can be done as well.
Linux Learning Note: mount point options noexec