https://bugs.kde.org/show_bug.cgi?id=449020
Bug ID: 449020 Summary: No way to elevate read permissions when opening a file, no error, blank document shown Product: kate Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: kwrite Assignee: kwrite-bugs-n...@kde.org Reporter: rula...@wp.pl Target Milestone: --- SUMMARY KWrite refuses to run with sudo, and claims in the output that it is "not necessary", because the user will be prompted for elevated permissions when they want to save the file. But what if permissions prevent KWrite from opening the file in the first place? There is no prompt for elevated permissions in this case, nor is there an error message, and KWrite shows an untruth: a blank document. STEPS TO REPRODUCE 1. Try to open a file to which you HAVE the r permission, but DON'T have the x permission for its containing directory (e.g. another user's .ssh/id_rsa.pub) OBSERVED RESULT No prompt for elevated permissions, no error message, blank document. An attempt to save the document _does_ prompt for privilege elevation, resulting in a risk of overwriting the file without even having seen its contents first. EXPECTED RESULT The mechanism for permission elevation should be implemented for opening files too. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.23.5 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 Kernel Version: 5.16.2-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 8 × AMD FX(tm)-8320 Eight-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 960/PCIe/SSE2 -- You are receiving this mail because: You are watching all bug changes.