0

Possible Duplicate:
How to 'chmod' on an NTFS ( or FAT32 ) partition?

I am a beginner on ubuntu 11.10, I want to execute some program named ./Pro but when i try:

$ ./Pro

I get the following error:

$Bash: ./Pro : Permission Denied.

When I try to change the permissions, by running: $sudo chmod +x Pro, nothing changes! In fact when I do $ls -l Pro the result is:

$-rw------- 1 hafez hafez 7251 2012-03-19 07:44 Pro

How can I run my file?

mefmef
  • 105

3 Answers3

5

Check the output to the following command mount | grep -i nexec I think your filesystem is mounted with a noexec option.

From the man page:

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

To solve this (until next reboot)

mount -o remount,exec your_filesystem

To make it survive a reboot, you'll have to edit /etc/fstab.

jippie
  • 5,733
1

right click in the file -> permissions -> allow executing fila as a program =)

in command line: try with sudo!

sudo chmod +x Pro
0

Try:

chmod a+x Pro

Or, for fun:

chmod 755 Pro
SirCharlo
  • 40,096