Specifically, I'm looking for a way to change the 'noexec' flag, which seems to be the current default, to 'exec' for any USB device when it is first mounted. At the moment, I have to do this manually using the command 'mount -o remount,exec /media/removable/nameofusb' every time I boot the system.
Whilst I could add this to the list of autostart applications (this USB is rarely removed from my Chromebook), I would like to change the default options for any device so that files on them can be executed without manually changing this.
I am running Ubuntu 14.04 (xfce) on an Acer Chromebook 14 using crouton.
lsblk -f
. – sourcejedi Oct 28 '16 at 18:59UUID=...
. – sourcejedi Oct 29 '16 at 20:31gksudo leafpad /etc/fstab
should give you an editor, if you're not sure – sourcejedi Oct 29 '16 at 20:34gksudo leafpad /etc/fstab
from terminal is my current suggestion. you can see current mount options by runningmount
, i.e. is the filesystem still mounted withnoexec
. you can view / attempt to change apparent execute permissions in file manager using right click -> properties -> permissions ("Allow this file to run as a program"?). – sourcejedi Oct 29 '16 at 22:20/etc/fstab
; if that doesn't work and writing your own line does, it should be possible to work out why my instructions didn't work :). New answer written for you, to describe how you would create an fstab line. – sourcejedi Nov 01 '16 at 11:06