Bug 462804

Summary: "No binary execution" checkbox does not explicitly specify "exec" option
Product: [Applications] partitionmanager Reporter: ratijas <me>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: REPORTED ---    
Severity: normal CC: tfucoloro
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ratijas 2022-12-09 02:06:28 UTC
SUMMARY

"No binary execution" adds a "noexec" option if it is checked. But it does nothing when unchecked, assuming that default (no option) means exec. But in fact (at least on Arch Linux) omitting these options is equivalent to noexec by default. So, in GUI there's no way to customize a mount point for an external partition which would allow running binaries from it.

STEPS TO REPRODUCE
1. Unmount some partition
2. Edit Mount Point properties
3. Uncheck "No binary execution" checkbox.
4. Save and remount.

OBSERVED RESULT
There's no "exec" option in fstab; partition is mounted with "noexec" by default; can't run binaries and scripts.

EXPECTED RESULT
Exactly the opposite.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.11-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: LENOVO
Product Name: 20QD003CRT
System Version: ThinkPad X1 Carbon 7th
Comment 1 ratijas 2022-12-09 02:14:09 UTC
I think the checkbox could be a tri-state: explicitly ON, explicitly OFF, and "leave it alone" middle state.
Comment 2 Tom Fucoloro 2025-12-15 21:53:18 UTC
I just created the Bug 513418 report that could possibly be solved together with this one. The tri-state selector idea could be a great addition that helps users easily troubleshoot mounting problems. Perhaps the middle option should be called "default." I am not knowledgeable enough about fstab to know if there would be unintended consequences for selecting exec in other mounting situations.