USB permissions question
Robert Heller
heller at deepsoft.com
Sat May 18 14:20:46 UTC 2019
At Sat, 18 May 2019 15:07:12 +0100 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
>
> If I create a script on a USB stick plugged into my system it's
> permissions are:
> -rw-r--r--
> If I try to make it executable with chmod u+x nothing happens, so I
> can't run it.
>
> How can I get scripts and programs to run from a USB stick? Is there a
> handy guide somewhere?
>
You need to mount the disk with '-o exec'. By default (and rightly so),
removable media is *always* mounted '-o noexec'. This is a security feature.
> I tried the advice on
> https://askubuntu.com/questions/17540/how-do-i-set-executable-permissions-on-a-removable-drive
> but "sudo /etc/init.d/udev restart" did not complete and return the
> command prompt, so I'm not clear where to go from here.
>
> - Richard.
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller at deepsoft.com -- Webhosting Services
More information about the ubuntu-users
mailing list