PDA

View Full Version : Unable to execute script that's in flash drive?



KayeNg
September 26th, 2016, 01:54 PM
I've read a few articles on it but I'm still not sure if it's possible or not. Is it or is it not possible to run a script in flash drive? I'm trying to run bluegriffon from my flash drive but it won't run and the permissions can't be changed.

mJayk
September 26th, 2016, 02:38 PM
it should be possible first thing to try is

sh /media/path/to/file.sh

or you could always just copy it to home and run it from there.

halogen2
September 26th, 2016, 05:39 PM
What filesystem is this flash drive?

KayeNg
September 29th, 2016, 10:08 AM
mJayk, come to think of it, I'm not sure if it's a script, it does not have the .sh extension, it is simply named "bluegriffon", but normally if I copy it to home and run it from there (as you suggest), I simply double click it, then a window would appear with the options "Execute", "Execute in Terminal", "Open" and "Cancel", then I would click Execute and the program (bluegriffon) would run.

But when the entire directory is in a flash drive, if I double click "bluegriffon", it simply opens with Leafpad (text editor in Lubuntu).

halogen2, the filesystem is fat32.

halogen2
September 29th, 2016, 03:45 PM
halogen2, the filesystem is fat32.
I don't think fat32 supports Unix permissions. That being said, my EFI partition has files that are listed as executable...

What is the permissions of the mountpoint, when mounted and when not mounted?