Answer the question
In order to leave comments, you need to log in
Why can't I run the executable on a flash drive (ubuntu)?
I'm trying to run the binary on a flash drive, but I get an error, I tried to write chmod +x showFilesAndExtInDir, nothing has changed, I can't even run it as root, what could be the problem?
ls -l for a file (I know I don't have run permission but I can't get it)
-rw-r--r-- 1 us us 2684759 Dec 29 16:15 showFilesAndExtInDir
Answer the question
In order to leave comments, you need to log in
Your flash drive is most likely FAT32.
FAT32 cannot store attributes, so the X bit is not there and cannot be. As a result, you will not run the binary from it.
Google says that it is possible to set permissions on the entire filesystem when mounted.
What is it written on? Is there a compiler in the system for this language?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question