https://bugs.kde.org/show_bug.cgi?id=467098

            Bug ID: 467098
           Summary: Allow user to mount LUKS drives without sudo
                    permission
    Classification: I don't know
           Product: kde
           Version: unspecified
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
KDE allows storing LUKS passwords in Kwallet. Its the users wallet with the
users password. But when trying to mount a LUKS drive, you need sudo
permissions, which makes no sense.


STEPS TO REPRODUCE
1. Attach a USB LUKS drive
2. Enter the password, let it store in KWallet
3. unmount the LUKS drive, mount again

OBSERVED RESULT
You need to press "Enter" to confirm the password, and you need the sudo
password.

EXPECTED RESULT
Password prompt opens where you have to only press enter. This should be
removed and used only when the password is wrong. Also you need the sudo
password to mount the drive.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37 (Kinoite, OSTree)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.14-200.fc37.x86_64 (64-bit)

PROPOSED SOLUTION

add something like that:

bash
echo "$USER ALL=(ALL) NOPASSWD: /usr/bin/mount" | sudo tee -a
/etc/sudoers.d/mount

ADDITION
This is not a duplicate of https://bugs.kde.org/show_bug.cgi?id=395300
This may be a solution for https://bugs.kde.org/show_bug.cgi?id=466731

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to