Bug 466731 - Add the option to auto-unlock LUKS drives
Summary: Add the option to auto-unlock LUKS drives
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.12.2
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-02 19:51 UTC by Henning
Modified: 2023-03-13 13:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2023-03-02 19:51:34 UTC
SUMMARY
Linux Mint does that and its very convenient. Once you enter the password and remember it (working with KWallet too) it automatically mounts LUKS drives, making them way easier to use

STEPS TO REPRODUCE
1. mount a LUKS encrypted drive
2. enter the password and "remember" it
3. unmount it, mount it again

OBSERVED RESULT
The password is entered automatically but you need to enter the sudo password twice

EXPECTED RESULT
Once the password is saved the drives should auto-mount

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.14-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Henning 2023-03-02 19:59:31 UTC
Use case: backup drive, very long password and keyfile stored on Computer
Comment 2 Ben Bonacci 2023-03-06 09:28:44 UTC
It looks like this feature is already available in Plasma. If you go to System Settings -> Removable Storage -> Removable Devices, there should be an option to mount a drive (or any drive) when it gets attached to the system or when logging into Plasma. Alternatively, you could use crypttab to mount the LUKS drive on boot before reaching the desktop.
Comment 3 Henning 2023-03-07 12:30:22 UTC
Thanks, automount works. Still I find cryptsetup hard to understand, I got to the point of entering "a keyphrase" (my password?) and it didnt work.

Automount works perfectly, at least now the drive pops up on start. Still I have to press enter and enter my sudo password. Its a really tiny change, I dont know how entering the sudo password could be avoided (I also think its the fault of the OSTree filesystem)
Comment 4 Henning 2023-03-13 13:22:34 UTC
A part of that would be to allow the user to use udisks without sudo permission.

I dont know if this is a security problem. Linux mint allows it, doesnt have to say anything of course.