October 18, 2019, 01:15:42 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


How to set exec bit while auto-mounting USB disk?

Started by facat, June 19, 2014, 10:32:31 am

Previous topic - Next topic

facat

I'm using cubian. Cubian is very smart. When I insert a USB disk, it will be mounted automatically. However, USB is automatically mount with noexec bit set, which means I cannot run binary executable files on USB disk.
What should I do to configure cubian, so I can run executable files on a automatically mounted USB disk?

almochris

I don't know how cubian does it, but I have a debian on my cubieboard and I use the usbmount package.

This is a very handy package for this type of thing. You can write scripts to run when a particular USB drive is mounted for example. (Put them in /etc/usbmount/mount.d/ )

If cubian is using usbmount, then have a look at /etc/usbmount/usbmount.conf and change the MOUNTOPTIONS variable removing the noexec flag.

There are several different methods in use for auto-mounting USB drives, like I say I'm not sure if cubian uses this one.

facat

unfortunately, cubian doesn't include usbmount tool. There's no usbmount command