执行文件被拒绝

mef*_*mef 0 permissions chmod

可能的重复:
如何在 NTFS (或 FAT32 )分区上“chmod”?

我是 ubuntu 11.10 的初学者,我想执行一些名为./Pro但当我尝试时的程序:

$ ./Pro
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

$Bash: ./Pro : Permission Denied.
Run Code Online (Sandbox Code Playgroud)

当我尝试更改权限时,通过运行:$sudo chmod +x Pro,没有任何变化!事实上,当我这样做时,$ls -l Pro结果是:

$-rw------- 1 hafez hafez 7251 2012-03-19 07:44 Pro
Run Code Online (Sandbox Code Playgroud)

我怎样才能运行我的文件?

jip*_*pie 5

检查以下命令的输出mount | grep -i nexec我认为您的文件系统是使用 noexec 选项安装的。

从手册页:

noexec Do not allow direct execution of any binaries on the mounted filesystem. 
Run Code Online (Sandbox Code Playgroud)

解决这个问题(直到下次重新启动)

mount -o remount,exec your_filesystem
Run Code Online (Sandbox Code Playgroud)

为了使它在重新启动后仍然存在,您必须编辑 /etc/fstab。