在使用适当的伪装重新安装后,为什么仍无法在NTFS分区上运行脚本?

Liang Xiao

我在ubuntu中使用移动硬盘,并且想在该磁盘上运行脚本。首先,该许可被拒绝。因此,我遵循此答案中的建议如何在NTFS(或FAT32)分区上使用“ chmod”?和使用

sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,uid=scw4750,gid=scw4750 /dev/sdf1 /media/Elements

重新安装磁盘。

此后,权限变为:

-rwxr-xr-x 1 scw4750 scw4750 32  6月  1 14:45 test.sh*

但是,当我用>> ./ test.sh运行test.sh时

它返回:

bash: ./test.sh: Permission denied

为什么会这样?怎么解决呢?谢谢。

钢铁司机

mount联机帮助页中所述usermount选项也隐式打开了该noexec选项。

user   Allow an ordinary user to mount the filesystem.  The name of the
       mounting user is written to mtab so  that  he  can  unmount  the
       filesystem  again.   This  option  implies  the  options noexec,
       nosuid, and nodev (unless overridden by subsequent  options,  as
       in the option line user,exec,dev,suid).

在哪里

noexec Do  not  allow  direct  execution of any binaries on the mounted
       filesystem. 

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

为什么Selenium无法与Firefox一起使用,但在重新安装后可以无缝运行?

来自分类Dev

意外重新安装后无法安装或运行Ionic

来自分类Dev

在分区上重新安装Ubuntu

来自分类Dev

重新安装Windows 7后重新安装grub后无法挂载/ home /分区

来自分类Dev

重新安装Windows 8.1后,为什么无法在外部驱动器上看到或引导到Ubuntu 17.04?

来自分类Dev

重新安装Windows后,是否可以在Windows分区上保留几个文件?

来自分类Dev

为什么我在重新安装 VS 后无法在 Visual Studio 中加载此解决方案?

来自分类Dev

重新安装Windows后无法从Live CD重新安装grub

来自分类Dev

为什么使用模拟器在Android Studio中重新安装后,SharedPreferences仍然存在?

来自分类Dev

重新安装anaconda后我无法安装theano

来自分类Dev

重新安装后自上次更新以来无法运行Steam

来自分类Dev

在Heroku上部署后,为什么必须重新安装现有的wordpress

来自分类Dev

重新安装MySQL后,为什么不能在列中插入NULL值?

来自分类Dev

为什么在切断电源后必须重新安装GPU?

来自分类Dev

重新安装后,为什么YII2中的POST空?

来自分类Dev

为什么重启后需要重新安装无线驱动程序?

来自分类Dev

重新安装Apache后16.04上的php7无法正常工作

来自分类Dev

在Ubuntu 16.04上卸载后无法重新安装MySQL 5.7

来自分类Dev

卸载后无法重新安装TestNg

来自分类Dev

更新后无法更新或重新安装Flash Player

来自分类Dev

升级后无法启动(或重新安装)Kubuntu 16.04

来自分类Dev

重新安装后无法连接到Samba共享

来自分类Dev

重新安装Ubuntu后无法联网

来自分类Dev

在ubuntu上重新安装mongodb服务后失败

来自分类Dev

使用brew cask在macOS上重新安装应用程序的脚本

来自分类Dev

重新安装Ubuntu 13.10后,Windows引导分区已删除,并且无法引导到Windows

来自分类Dev

从正在运行的系统在第二个磁盘的 EFI 分区上重新安装 GRUB

来自分类Dev

在另一个目录中重新安装anaconda后无法使用conda

来自分类Dev

无法在Windows 10上重新安装Virtualbox

Related 相关文章

  1. 1

    为什么Selenium无法与Firefox一起使用,但在重新安装后可以无缝运行?

  2. 2

    意外重新安装后无法安装或运行Ionic

  3. 3

    在分区上重新安装Ubuntu

  4. 4

    重新安装Windows 7后重新安装grub后无法挂载/ home /分区

  5. 5

    重新安装Windows 8.1后,为什么无法在外部驱动器上看到或引导到Ubuntu 17.04?

  6. 6

    重新安装Windows后,是否可以在Windows分区上保留几个文件?

  7. 7

    为什么我在重新安装 VS 后无法在 Visual Studio 中加载此解决方案?

  8. 8

    重新安装Windows后无法从Live CD重新安装grub

  9. 9

    为什么使用模拟器在Android Studio中重新安装后,SharedPreferences仍然存在?

  10. 10

    重新安装anaconda后我无法安装theano

  11. 11

    重新安装后自上次更新以来无法运行Steam

  12. 12

    在Heroku上部署后,为什么必须重新安装现有的wordpress

  13. 13

    重新安装MySQL后,为什么不能在列中插入NULL值?

  14. 14

    为什么在切断电源后必须重新安装GPU?

  15. 15

    重新安装后,为什么YII2中的POST空?

  16. 16

    为什么重启后需要重新安装无线驱动程序?

  17. 17

    重新安装Apache后16.04上的php7无法正常工作

  18. 18

    在Ubuntu 16.04上卸载后无法重新安装MySQL 5.7

  19. 19

    卸载后无法重新安装TestNg

  20. 20

    更新后无法更新或重新安装Flash Player

  21. 21

    升级后无法启动(或重新安装)Kubuntu 16.04

  22. 22

    重新安装后无法连接到Samba共享

  23. 23

    重新安装Ubuntu后无法联网

  24. 24

    在ubuntu上重新安装mongodb服务后失败

  25. 25

    使用brew cask在macOS上重新安装应用程序的脚本

  26. 26

    重新安装Ubuntu 13.10后,Windows引导分区已删除,并且无法引导到Windows

  27. 27

    从正在运行的系统在第二个磁盘的 EFI 分区上重新安装 GRUB

  28. 28

    在另一个目录中重新安装anaconda后无法使用conda

  29. 29

    无法在Windows 10上重新安装Virtualbox

热门标签

归档