问题已解决。
原因如下:
我在安装时计划将所有文件存放在单独分区,所以划分了个基本分区/dev/sda3挂载到/data上,银河麒麟系统默认的文件系统选项为:rw,user,x-gvfs-show,nosuid,nofail,将/etc/fstab中/data的选项user选项去除即可。
为什么去掉user即可,因为这个选项自动包含了noexec选项,noexec选项表示此文件系统上不允许执行二进制。网上搜到的ubuntu有关/etc/fstab中options的解释如下:
user - Permit any user to mount the filesystem. This automatically implies noexec, nosuid,nodev unless overridden.
exec / noexec - Permit/Prevent the execution of binaries from the filesystem.
这个纠结了我几天的问题已解决,但不知银河麒麟系统为啥默认要给所有用户添加mount权限啊,应该只留root的mount权限才对,实际上,很多企业应用场景应该是会划分独立的数据分区的,那会不会导致所有的数据分区都有这类问题呢。
|