Unable to execute from USB Drive (FC2)

Matthew Miller mattdm at mattdm.org
Fri Jul 1 15:27:10 UTC 2005

On Fri, Jul 01, 2005 at 10:20:34AM -0500, Mike McCarty wrote:
> I'll try again with a shorter message.
> I'm having problems executing programs from a mounted USB drive.
> I mount /dev/sda1 to /dev/usb and create some directories
> over there. All paths have execute access all the way down
> When I try to execute a program built on the USB drive, I get
> "bash: /mnt/usb/jmccarty/hello: Permission denied".
> Is this because it is a "removable medium"? I just checked, and
> I get the same error from a floppy.

Yes, very likely. The "user" flag to mount (look in /etc/fstab) implies the
option "noexec". Add the option "exec" and it should work as you expected.

Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>
Current office temperature: 76 degrees Fahrenheit.

More information about the users mailing list