9

I have an ext4 partition that I mount using the following fstab line

UUID=41dec246-654d-4e35-9d4e-68150e40c5b0 /mnt/Data     ext4    defaults,user      0      2

But then I realized that I can't execute from that partition. I checked my mount options and they were: rw,noexec,nosuid,nodev

So I changed the mount options to be more explicit as follows:

UUID=41dec246-654d-4e35-9d4e-68150e40c5b0 /mnt/Data     ext4    rw,suid,dev,exec,auto,user,async      0      2

But the partition still mounts with the same options (rw,noexec,nosuid,nodev).

I'm running Ubuntu 14.04 and I'm using UEFI booting. I'm also dual-booting with Windows 8.1

  • 2
    user implies noexec and order count so auto,user,exec if you need dev or suid or rw add them – Panther Sep 27 '15 at 3:03
16

Change that line to

UUID=41dec246-654d-4e35-9d4e-68150e40c5b0 /mnt/Data     ext4    rw,suid,dev,auto,user,async,exec      0      2

The position of exec is important, since user also applies noexec. By putting exec after user, you ensure that exec is set. The most important options should be listed last.

  • This was the key to solve my problem. I had exec first and all my problems went away after moving it to the end. – endyourif May 13 '18 at 17:59

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.