Linux Learning Note: mount point options noexec

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.