Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • It seems that from udisks2's devs point of view, the frontend (gnome in this case) should be the one that is responsible for allowing the users to set desired default mount options. If you can't find anything for that in dconf-editor (where you can disable automounting), probably gnome's dev don't think it's necessary (after all they prefer things to be "simple" since version 3), and hence it isn't actually possible.
    – Tom Yan
    Commented Sep 24, 2019 at 3:33
  • For the record, it seems that you can pass mount options to udisks via a udev rules / env var, back in the days when udisks was udisks"1".
    – Tom Yan
    Commented Sep 24, 2019 at 3:35
  • Btw some devs also claim that noexec is pointless as one can simply copy the executable to $HOME and execute it instead. (Though perhaps you have measures for that as well, I don't know.)
    – Tom Yan
    Commented Sep 24, 2019 at 3:37
  • It does seem odd that they removed the feature when they moved to udisks2. I have found a couple of requests for the same functionality in udisks2 but it hasn't been implemented. Yeah home can easily be made noexec with fstab. Maybe the holistic method is to disable a low privileged users ability to executes scripts(if that's possible). I have looked into udisk2 wrappers like udiskie maybe I could get something working that way. If all else fails I could write my own auto mounter but this is far from ideal. Commented Sep 24, 2019 at 3:52