Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 12722  / 2 Years ago, fri, september 16, 2022, 8:39:30

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?


More From » permissions

 Answers
2

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.


[#39318] Saturday, September 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
azaaburge

Total Points: 266
Total Questions: 85
Total Answers: 109

Location: Djibouti
Member since Sat, Oct 29, 2022
2 Years ago
;